Menu

BUG: ASP Syntax Highlighting

John Byrne
2009-07-07
2012-11-13
  • John Byrne

    John Byrne - 2009-07-07

    The JScript server-side code on my ASP pages does not contain any syntax highlighting.

    Is there anyway of fixing this??

    If this could be fixed Notepad ++ could become my perferred editor.

    Thanks

     
    • John Byrne

      John Byrne - 2009-07-09

      The status bar displays Javascript when I open a .asp file, but I then loose all the HTML syntax coloring.

      ASP files should be highlighted just like PHP files except that the server-side language could be either VBScript or JScript. The default language for ASP in IIS is VBScript but you can override this by having the following as the first line in you ASP page:

      <%@ LANGUAGE=JavaScript %>

      Also, I noticed that CSS is not being highlighted in either ASP or PHP when define between the <STYLE/> tags.

      JB

       
    • cchris

      cchris - 2009-07-08

      Define the extension of your file (is that .asp?) as user extension for Javascript (Settings -> Styler Configurator, cloick on Javascript).

      CChris

       
    • John Byrne

      John Byrne - 2009-07-08

      I added the asp extension for JavaScript and it made no difference.

       
      • Jocelyn Legault

        Jocelyn Legault - 2009-07-09

        AFAIK, ASP and javascript are parsed by the exact same parser.

         
    • cchris

      cchris - 2009-07-09

      So, when you open an asp file, what does the first pane in status bar say? It should id as "JavaScript file". If it doesn't, then your config is not being read - check whether you are using default styler or some theme, and whether there is some confusion between settings in %APPDATA% and some in local folder.

      CChris

       
    • Don HO

      Don HO - 2009-07-09

      please tell me, is it a regression or not?

      Don

       
MongoDB Logo MongoDB