|
|
There are ways to do it with visual studio as well.
Real programmers use butterflies
|
|
|
|
|
How many different words / strings are in your custom (grammar) file?
Would it be good enough to highlight all of them with the same backcolor?
|
|
|
|
|
I'm tired of this conversation. Look, I told you what I was looking for. The rest is just wasting time, and I'm busy.
Real programmers use butterflies
|
|
|
|
|
Yes, I did some tutorials where Instructors loaded VS Extensions...
IMHO, a bunch of trash! (If you try to take care of your RAM)
|
|
|
|
|
Try to find an existing syntax highlighting extensions that's open source.
|
|
|
|
|
I've found some on github but not really documented.
Real programmers use butterflies
|
|
|
|
|
|
Not sure if that's what you're looking for, and I don't know if it can be used with VS Code, but I'm very happy with the extended coloring and highlighting capabilities of Visual Assist - a Visual Studio extension by Whole Tomato Software[^]
But admittedly the main use I get out of it is its outliner and VA View that gives me a host of information about any symbol I'm currently hovering over. You can find references to any symbol, and unlike Intellisense it will distinguish uses of that specific symbol from uses of a same name symbol from another context. Also the code macros and refactoring options are better than anything offered by Intellisense.
There are a lot more useful features like renaming: renaming a member variable will show you every affected line as context and lets you disable those you don't want changed, and renaming a class within a file of the same name will offer to also change the file names accordingly, as well as adjust #include statements of renamed headers.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
I'm looking for ways to extend Visual Studio to highlight my own files. I don't think Visual Assist will help me there? I also don't want end users to have to install it to highlight my files.
Real programmers use butterflies
|
|
|
|
|
You can tell VA to interpret files without extensions as C++ headers, or tell it to interpret files with custum extensions as code files. See
Custom File Extensions[^]
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
honey the codewitch wrote: I also don't want end users to have to install it to highlight my files.
I'm not sure I understand this part. Are you saying you have source files with non-standard extensions that your end users are looking at? If so, then maybe the cost or effort to install VA may not be worth it. However, VisualStudio also has the feature to interpret files with custom extensions as C++. Not sure where in the settings this is hiding. But it would at least enable the built-in highlighting capabilities.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
Do you understand HUGE DIFFERENCE between VS and cr@p named VS Code??
|
|
|
|
|
You'll notice there's a complicated word in my post called "and"
Once you figure out what it means, you'll answer your own question.
Real programmers use butterflies
|
|
|
|
|
|
Thanks. I wish they would have written it down instead of making me sit through a video but at this point I'm willing to try it. Thanks again.
Real programmers use butterflies
|
|
|
|
|
I am rather sure, I'll get to write a language server next year. Would something like that help you as well?
|
|
|
|
|
I'm not sure, but I don't really use that stuff because it ties me to a platform, or I have to do extra work to target others.
Using TextMate I should be able to hopefully use the same code to target VS and VS Code so I get my cross platformability.
As far as anything beyond that, like other things a language server might provide, I don't really want all that buy in on something with so many moving parts, especially since it's tied to the Microsoft ecosystem.
Real programmers use butterflies
|
|
|
|
|
Langserver.org doesn't read like it's tied to the Microsoft ecosystem too badly.
The Delphi IDE, by the way (sold by Embarcadero not affiliated with Microsoft) uses a Delphi language server.
|
|
|
|
|
Thanks. I'll look into it.
Real programmers use butterflies
|
|
|
|
|
recently I am fed up with my fulltime job and want to retire soon.
so I start to think about one question: how to buy a good medical insurance personally? I have UNH now.
diligent hands rule....
|
|
|
|
|
Southmountain wrote: good medical insurance personally?
It does not exist, unless you want to spend a lot.
|
|
|
|
|
Southmountain wrote: I have UNH now.
If you like them, give them a call and see if they'll give you a quote for a policy that's similar to what you have now.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
it is easy to call, but I doubt their service people understand my question.
diligent hands rule....
|
|
|
|
|
Service people no, salespeople yes.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|