With Visual Studio 2005, 2008, and 2010, you can debug a classic ASP by attaching a debugger to the w3wp.exe process. In 2005 and 2008, it is very difficult and often happens with errors, but it works well in 2010. The only problem is that, as far as I can tell, VS2010 does not support classic ASP code allocation or code completion. HTML looks great, but any classic ASP code is just black and white.
I canβt add <%@Script="VBScript"%> to the top of each page due to the architecture of the site and even after testing does nothing.
This whole problem is very confusing because with Visual Studio 2010 Express, the above-mentioned classic ASP support goes out of the box (minus debugging).
I can highlight alternating HTML and VBScript by switching between the following modes (but never both). I tried the following: Tools> Options> Text editor> File extensions> Adding the "ASP" extension with the following editors:
- Automatic Editor Selector (XML) - Retrieves HTML on the right, but not blocks on ASP
- Microsoft Visual Basic - ASP receives mostly rights (many underlined errors, even if the code conforms to the ASP standard), but no HTML highlighting
- Script Editor - HTML, but not ASP
- Web Form Editor - HTML, but not ASP
I reviewed the Editor extension , my thoughts are to try to mix markup for the web form editor and Microsoft Visual Basic editor, but I'm not sure if this is a reasonable move.
How can I get code highlighting and intellisense for classic ASP in Visual Studio 2010?
source share