• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

518

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
Community Expert ,
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— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

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
Community Expert ,
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.

Votes

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