Enable code formatting for custom file extensions

New Here ,
Apr 01, 2020 Apr 01, 2020

Copy link to clipboard

Copied

I work with a custom extension but the contents are just JavaScript.

 

I have managed to add the extension to Dreamweaver by eding the MM XML file and I've managed to instruct Dreamweaver to treat the file as JavaScript, and color it so (just makes everything easier as I'm sure you all know). 

 

The final step I want to achieve is using the "Apply Source Formatting" feature with my custom extension. As you can see below they are greyed out even though the file is JavaScript, and associated so within Dreamweaver.

 

Any ideas?!

 

Screen Shot 2020-04-01 at 8.08.40 AM.png

TOPICS
Code , Extensions , Interface

Views

462

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 01, 2020 Apr 01, 2020

Copy link to clipboard

Copied

What happens if you rename the file with a .js extension?

 

Nancy O'Shea, Adobe Product User & Community Professional
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 01, 2020 Apr 01, 2020

Copy link to clipboard

Copied

LATEST

I totally agree with Nancy, JavaScript files (or any file for that matter) should have the correct file extension. What you could do is give it a name like

 

myJS.myEXT.js

Wappler, the only real Dreamweaver alternative.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines