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

Set a default file type eg ASP to VBScript for color coding

New Here ,
Jan 23, 2022 Jan 23, 2022

Copy link to clipboard

Copied

Does anyone know of a way to set defaut file types ( for color coding purposes ) against alternative file types

for examples set .asp pages to always open with VBScript type so that color coding is applied straight away without having to change it for each opened file, which is very annoying. This has been possible in prvious version by editing a file but I can't locate the appropriate file for the 2021 latest update, has anyone done this or know how ? thanks 🙂  

Views

867

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

correct answers 1 Correct answer

Community Expert , Jan 24, 2022 Jan 24, 2022

You can set the default handling of code coloring for .asp files with a quick modification to a program file...

1. Turn on your Hidden Files at the OS level

2. Go to C > Users > (your user name) > AppData (normally hidden) > Roaming > Adobe > Dreamweaver (your version) > (your language) > Configuration > Brackets
3. Open the brackets.json file found there in a text editor
4. Add the following to the end of the file, just before the file's ending curly bracket...

"language.fileExtensions": {
"asp": "v

...

Votes

Translate

Translate
Community Expert ,
Jan 23, 2022 Jan 23, 2022

Copy link to clipboard

Copied

ASP is deprecated.  MS stopped Classic ASP development in 2002 when ASP.NET was released.  And Dreamweaver ended support for ASP ages ago.

 

As you can see from this screenshot, ASP is not a supported file type in DW.

image.png

 

Even MS's own Visual Studio Code no longer supports syntax coloring in Classic ASP code without an extension.

https://www.itnota.com/making-visual-studio-code-colorize-classic-asp-code/

 

 

Nancy O'Shea— Product User, Community Expert & Moderator

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 ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

You can set the default handling of code coloring for .asp files with a quick modification to a program file...

1. Turn on your Hidden Files at the OS level

2. Go to C > Users > (your user name) > AppData (normally hidden) > Roaming > Adobe > Dreamweaver (your version) > (your language) > Configuration > Brackets
3. Open the brackets.json file found there in a text editor
4. Add the following to the end of the file, just before the file's ending curly bracket...

"language.fileExtensions": {
"asp": "vbscript" }


5. Save and close

DW many need to be restarted after this, but .asp files will now open with VBscript selected by default. Keep a copy of the instructions above, you'll need to do this every time DW is updated.

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
New Here ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

LATEST

Perfect Jon

 

This is exactly what I was looking for, worked a treat 🙂

🙂

🙂

🙂

 

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