Is there an easy way to get syntax highlighting for a custom file type ... in Visual Studio 2010?

I want the Visual Studio syntax to highlight the simple file format I am using. The format contains only four lines of text: comments, spaces, lines that have a path, and lines starting with @ that also have a path. It would be nice if the color code of the comment is different from the rest of the text, and the comments are simple: a line starting with the # character is a comment. Of course, if you just add, maybe color coding for two different paths, like lines.

Is there an easy way to get Visual Studio to recognize a file extension using these rules? It would be great if the solution worked for Visual Studio Express editions as well.


source to share

All Articles