Highlighted

Enable code formatting for custom file extensions

New Here ,
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

405

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

Enable code formatting for custom file extensions

New Here ,
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

406

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
Adobe Community Professional ,
Apr 01, 2020

Copy link to clipboard

Copied

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

 

Nancy O'Shea, ACP
Alt-Web.com

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
Reply
Loading...
Adobe Community Professional ,
Apr 01, 2020

Copy link to clipboard

Copied

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


Ben

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
Reply
Loading...