Skip to main content
Participant
January 23, 2022
Answered

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

  • January 23, 2022
  • 2 replies
  • 1217 views

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 🙂  

    This topic has been closed for replies.
    Correct answer Jon Fritz

    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.

    2 replies

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    January 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": "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.

    leciraAJMAuthor
    Participant
    January 24, 2022

    Perfect Jon

     

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

    🙂

    🙂

    🙂

     

    Nancy OShea
    Community Expert
    Community Expert
    January 23, 2022

    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.

     

    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