Re: [D3D8 PATCH] d3d8 shaders update - VS2
Yes, the version of vim that came with (I believe) Red Hat 6.0 has the definitions in its syntax file for proper "#if 0" highlighting. As common a practice as this has become, any syntax-highlighting editor with some degree of maturity that did *not* have this in its default rulesets for C/C++ would surprise me. What language-independent, syntax-highlighting text editor are you using? -- Jeff S
From: Fabian Cenedese <Cenedese(a)indel.ch>
/* note about reason for commenting block */ #if 0 code code /* comments */ code #endif
Whereas this is the solution with the least work it's also hard to spot. If using a text editor with syntax coloring it all looks the same. But if a code isn't effective I'd like to see that.
Actually it could be considered as an editor fault if it changes color for commented out code but doesn't recognize the #if 0/#endif construct.
I wouldn't say so. A comment is easily recognized by the chars /* */ or //. But to get a #if 0 or #if _ANYTHING you really need a language dependant preprocessor which goes beyond a normal text editor, even one with syntax coloring. Do you have such a text editor that finds #if's?
bye Fabi
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Yes, the version of vim that came with (I believe) Red Hat 6.0 has the definitions in its syntax file for proper "#if 0" highlighting. As common a practice as this has become, any syntax-highlighting editor with some degree of maturity that did *not* have this in its default rulesets for C/C++ would surprise me.
What language-independent, syntax-highlighting text editor are you using?
-- Jeff S
I wouldn't say so. A comment is easily recognized by the chars /* */ or //. But to get a #if 0 or #if _ANYTHING you really need a language dependant preprocessor which goes beyond a normal text editor, even one with syntax coloring. Do you have such a text editor that finds #if's?
There goes the editor war again :) As Windows developer I'm mostly using MSVC, still version 6, About says it's from 98. I don't know about .net studio if this supports #if 0. For our own product we use an open-source editor for Windows called CodeMax. An expanded version is here http://www.ticz.com/homes/users/nlewis/index.html?target=download Considering the age of these two it's maybe understandable why they don't have this feature. Tell me an editor in Windows and I may switch. As said before they don't color all files the same, they get the language from the file extension and I guess vim does the same. Recognizing the #if 0 is the only difference (well, at least concerning coloring :) On Linux I used Kate so far. Hmm, Kate also supports #if 0, never noticed that... bye Fabi A: No, see http://www.netmeister.org/news/learn2quote.html Q: Should I include quotations after my reply ?
On Thursday 19 December 2002 14:27, Fabian Cenedese wrote:
Considering the age of these two it's maybe understandable why they don't have this feature. Tell me an editor in Windows and I may switch.
There is windows version of Vim. Try that :)
participants (3)
-
Fabian Cenedese -
Jeff Smith -
Zsolt Rizsanyi