Visual Studio 2010: Javascript Highlighting - Stack Overflow

I'm using VisualStudio 2010 with VS.PHP. When I write or open a javascript file it is not higlight

I'm using VisualStudio 2010 with VS.PHP. When I write or open a javascript file it is not higlighted and intellisense is not working. All I see is plain text. It seems that VS does not "identify" the javascript file. When I manually order js files to open in Script editor (in Tools > Options > Text Editor > File Extension), nothing changes. Highlighter in (in Tools > Options > Environment > Tools and colors) is set properly. Do you have any ideas how can I run highlighting? Google says nothing.

I'm using VisualStudio 2010 with VS.PHP. When I write or open a javascript file it is not higlighted and intellisense is not working. All I see is plain text. It seems that VS does not "identify" the javascript file. When I manually order js files to open in Script editor (in Tools > Options > Text Editor > File Extension), nothing changes. Highlighter in (in Tools > Options > Environment > Tools and colors) is set properly. Do you have any ideas how can I run highlighting? Google says nothing.

Share Improve this question edited Aug 1, 2011 at 21:53 Bart 20.1k8 gold badges71 silver badges79 bronze badges asked Aug 1, 2011 at 21:47 Martin StrouhalMartin Strouhal 1,2241 gold badge13 silver badges23 bronze badges 1
  • My files are *.js . In addition I've tryied to set JS files to open as another file types (in Tools > Options > Text Editor > File Extension). Highlighting works partly, because I'm higlighting another language (sql). Unfortunately, my code is underlined red because of syntax errors (because I'm opening javascript end "editing" sql). I'm being desperate – Martin Strouhal Commented Aug 2, 2011 at 7:26
Add a ment  | 

3 Answers 3

Reset to default 3

You probably removed the "Web Developer 2010" ponent when installing your Visual Studio. Or you are using one of the Express editions.

I've had the same problem, and I just found a solution that works for me.

  • Open VS 2010
  • Select Tools / Options... from the menu
  • Open the Text Editor / File Extension property page
  • Add an entry for the "js" file extension and set the editing experience to "Script Editor"

I still don't know why this doesn't work out of the box, but at least this fixes the issue.

http://visualstudiogallery.msdn.microsoft./872d27ee-38c7-4a97-98dc-0d8a431cc2ed/

Is there a good javascript plugin for visual studio?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744852835a4597229.html

相关推荐

  • Visual Studio 2010: Javascript Highlighting - Stack Overflow

    I'm using VisualStudio 2010 with VS.PHP. When I write or open a javascript file it is not higlight

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信