Shader Syntax Highlighting

Reference

Steps:

1. Tools ->Options ->Text Editor -> File Extension
Add extensions glsl, frag, and vert to use Editor Microsoft Visual C++
(now can use automatic document formatting: Edit menu -> Advanced -> Format Document))

2. Add support for GLSL keywords:
a) Download the keyword list, and rename it as “usertype.dat”;
b) copy this file to visual studio IDE directory, eg. “C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE”.
c) Tools -> Options -> Environments tab -> Fonts and Colors ->
Display items -> C/C++ User Keywords -> choose your own color style
d) restart Visual studio

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s