BUG: Problem with syntax highlighting: Not working on ASP Classic Scripts
-
@SalviaSage The file extension is ASP (You can find it in Notepad++: Language --> ASP).
This is an example of an ASP Script:
<%
Session(“display”) = “Regitrazione”
Session(“link”) = “register.asp”
%>Just copy/paste into a Notepad++ ASP set page.
-
I haven’t found any builtin theme which had set it to light blue but anyways, check if the color is set for your theme. To do so,
goto Settings->Style Configurator->Language(choose ASP) and in Style choose ASPSYBOL. Now you can see and modify the color. -
Trying to explain me better i link this image: ASP Tags - Notepad++ 7.7.
The color “yellow” works good, If I change It into the “ASPSYBOL” section It’s displayed correctly; but the content inside the ASP tags should be highlighted in light blue (This image, took by using the previous version of Notepad++, explain me better for sure).
Any ideas?
-
asp is no longer the default language for html lexer and has been changed to JS.
I guess this makes sense, doesn’t it?
But this means that the attribute asp.default.language needs to be set to 2 if one chooses ASP lexer.
You might open an issue here.If by any chance you are using a scripting language plugin you can set it your self by doing something like
editor.setProperty('asp.default.language', 2)
-
I have same problem. I changed the Lenguaje to ActionScript in the Notepad ++ (in Lenguaje–>A–>ActionScript option menú) and this changed colours. I now this is not solution, but I can see my code in colours, is better than see all in white and black
-
I am having the same problem with ASP files. The reality is that there are still many sites running on classic ASP (whether it is fashionable or not). The colour coding worked until I upgraded to 7.7 today, and I have confirmed that it is still working on 7.5.9. Irrespective of the file extension (which is ASP in this case), I should be able to choose the language color-coding from the language menu. If I look at the Style Configurator, asp is still defined correctly, but it is only seeing the <%%> markers and nothing else. Something broke in the upgrade.
-
I have the same problem and I have found that the colour coding still work if you have this line in the beginning of the file:
<%@LANGUAGE=“VBSCRIPT”%>
-
@dail has provided the fix here : https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5708
The fix will be included in v7.7.1. -
Good to see that it’s getting fixed, this will help me. I had this problem too - it would recognize the <% %> code blocks, but would not highlight the language within them (VBScript) correctly unless if the <%@LANGUAGE=“VBSCRIPT”%> line was included.
-
is anyone using UDL http://docs.notepad-plus-plus.org/index.php/User_Defined_Languages as alternative (for now)? And would they mind sharing their .xml?
-
I don’t know if it’s been reported but I renamed a file and syntax highlighting was gone
-
Same exact problem in PHP. NP++ ver 7.6.2 works correctly
See: https://notepad-plus-plus.org/community/topic/17774/php-syntax-not-highliting-when-inside-other-language-string-ver-7-7 -
Same here, my ASP scripts aren’t highlighted anymore since v7.7.
I can confirm it works with Notepad++ 7.6.6, I downgraded until bug is fixed.