adambox
adambox

Reputation: 25501

How do I get Visual Studio to do vbscript syntax highlighting for .asp files?

asp files are highlighted as html in Visual Studio 2008 unless I put language=vbscript in all my <% > code blocks. lame! when I go to tools -> options -> text editor -> file extention I don't get vbscript or vb as an option, only c#, c++, html, etc

Upvotes: 3

Views: 13683

Answers (3)

Milan
Milan

Reputation: 3325

I am having the same issue. I managed to adjust the VBScript text Editor colors in interim by going to

TOOLS -> Options -> Environment -> Fonts & Colors

Show Settings For: Text Editor

Display Items: scroll down to VBScript and adjust the colors for each item.

It's not perfect but at least it is not B&W anymore.

Upvotes: 0

Vishnu Kumar K S D
Vishnu Kumar K S D

Reputation: 11

Go to IE ,Tools-->Inter net Options-->Advanced--> Browsing --> Uncheck Disable Script Debugging(IE)--->Hit Apply Button

Then got to your VS

Tools --> Options --> Text Editor --> File Extensions --> On the Right Pane,Type your File Extension which you want to Debug(Ex: vb (or) js) in Extensions Box, Choose Editor "Script Editor" -->Hit Add Button --> Check "Map Extension Files to" ---> Select "Microsoft Visual C#" -->Enter "OK" Button Now you run the application and debug the script.

Upvotes: -2

adambox
adambox

Reputation: 25501

turns out VB wasn't installed :P

  1. make sure it is
  2. in VS, go to tools -> options -> text editor -> file extension
  3. add asp as the extension and pick Visual Basic as the editor

Upvotes: 8

Related Questions