I am starting my first project in OpenGL/GLSL and I was wondering, how do you work with code of shaders? Because it needs to be const char and syntax higlighting shows everything in the same color (as string) and so its difficult to navigate in code. const char *shader = ...void main()\n...;Do you edit the code and then add quotation marks or do you just write it with quotation marks from the start? Thanksedit: using VS2012
Working with shader code
opengl
One thing you can do to make including shader code in C(++) source files more convenient is defining a macro like this:#define GLSL(x) #version #150\n #xExample:const char* shader = GLSL(    out vec4 outColor;    void main() {        outColor = vec4(1.0, 0.0, 0.0, 1.0);    });This will give you better formatting and basic C-style syntax highlighting:Note that new lines will be ignored, so any preprocessor statements must be explicit.