Advertisement Jump to content

Archived

This topic is now archived and is closed to further replies.

Desdemona

Syntax highlighting in VS.NET 2003

This topic is 5373 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to make Visual Studio.NET 2003 apply C/C++ style syntax highlighting to AngelScript script files? I''ve only been able to find info on how to do this in VS6.

Share this post


Link to post
Share on other sites
Advertisement
I''m using MSVC6 and never thought to find out whether this was possible. Now my script files look as pretty as the rest of my code Thanks for the prompting.

Can''t help you with your .NET problem though. Sorry.

- Xavier

Share this post


Link to post
Share on other sites
You can get MSVC 7.1 to apply existing language syntax highlighting/editting modes to new file extensions. For example, on my computer I want the .cow extension to have the same syntax highlighting and basically be treated in every other way like a .h file, so I added to my registry this key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions\.cow]
@="{B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}"

If you wanted C# instead of C/C++ you can use:
{694DD9B6-B865-4C5B-AD85-86356E9C88DC} instead of {B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}

Java is {E6FDF88A-F3D1-11D4-8576-0002A516ECE8} and VB is {E34ACDC0-BAAE-11D0-88BF-00A0C9110049}.

Usual warning applies: this is a non-documented, non-supported feature and messing with the registry can have adverse effects on your computer and/or sex life, etc.

I figured this one out messing with the registry directly, so there may be easier methods out there.

Share this post


Link to post
Share on other sites
Thanks for helping out SiCrane.

I haven''t started using VS.Net yet, but when I do this will come in handy.


__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!