Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Syntax highlighting in VS.NET 2003

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1 Desdemona   Members   

158
Like
Likes
Like

Posted 02 May 2004 - 11:07 AM

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.

#2 meink   Members   

133
Like
Likes
Like

Posted 03 May 2004 - 07:42 PM

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

#3 SiCrane   Moderators   

11760
Like
Likes
Like

Posted 04 May 2004 - 07:49 AM

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.

#4 Andreas Jonsson   Moderators   

4625
Like
Likes
Like

Posted 04 May 2004 - 09:04 AM

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

#5 Arild Fines   Members   

968
Like
Likes
Like

Posted 04 May 2004 - 09:38 AM

There''s always VSIP. It lets you add support for any kind of language to VS.NET.

--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]

#6 Desdemona   Members   

158
Like
Likes
Like

Posted 04 May 2004 - 02:08 PM

Great, that worked. Thanks for the info




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.