Hi guys,
Does anyone know how (or if it is possible) to turn off syntax highlighting on a particular file? In my case a single 'header' file.
Thanks in advance :)
Hi guys,
Does anyone know how (or if it is possible) to turn off syntax highlighting on a particular file? In my case a single 'header' file.
Thanks in advance :)
Yeah, that works, but you lose the syntax coloring then. Was hoping to keep the syntax colored but the underlining on errors removed.
Yeah, that works, but you lose the syntax coloring then. Was hoping to keep the syntax colored but the underlining on errors removed.
Now I'm confused. Are the errors impossible to fix?Yeah, that works, but you lose the syntax coloring then. Was hoping to keep the syntax colored but the underlining on errors removed.
turn off syntax highlighting on a particular file? In my case a single 'header' file.
Was hoping to keep the syntax colored but the underlining on errors removed.
The include file is written in a language that VS doesn't recognise by default. Hence, all of the distracting red and green squiggles for the syntax it doesn't recognise.
So you want to turn off syntax highlighting for a file, but also leave it on. You want to have a file with a name extension that visual studio recognizes (sounds like .h) but not have it attempt to show compiler errors or syntax issues.
For the latest change of requirements...
In the file's properties (accessed from the project view) I think modifying the build action to "None" or "Additional Files" or similar will make the underlining go away.
As for the syntax highlighting, you write once that you want it disabled and again that you want it enabled, so I'm not sure what you're doing there. There are a few ways to change syntax highlighting keywords, to define new language keyword sets, and even to add entirely new language support to the IDE, as long as it fits the basic parsing rules. Since the quoted statements are directly contradictory (want to turn it off entirely, also hoping to keep) I hope the documentation link is enough to figure out whatever it is you're trying to do.