Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Code block editing (editor )
Code block editing [message #1827762] Fri, 22 May 2020 17:26 Go to next message
Helen Keller is currently offline Helen KellerFriend
Messages: 173
Registered: June 2019
Senior Member
While using Eclipse editor one can highlight a code block between curly brackets
{ // code block
....
} // code block
using mouse.

Is there a similar way to highlight code in preprocessor block ?

#ifdef CODEBLOCK
...
#endif

At some point the code block between preprocessor directives was "highlighted" by different background color.
That "feature " no longer works in 2020-03

Re: Code block editing [message #1828402 is a reply to message #1827762] Tue, 09 June 2020 08:56 Go to previous messageGo to next message
Collins Ehizojie is currently offline Collins EhizojieFriend
Messages: 1
Registered: June 2020
Junior Member
Please I have a problem. I have successfully installed eclipse and mingw and ran the hello world program. However I create a new project and bring up an editor window
Re: Code block editing [message #1828442 is a reply to message #1828402] Tue, 09 June 2020 18:31 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Please do not post a completely unrelated question to a previous thread.

To your question: Open the Eclipse help for C/C++ Development Toolkit (CDT) and read it. The instructions are there.


--

Tauno Voipio
Re: Code block editing [message #1828542 is a reply to message #1828442] Thu, 11 June 2020 16:48 Go to previous messageGo to next message
Helen Keller is currently offline Helen KellerFriend
Messages: 173
Registered: June 2019
Senior Member
Tauno ,
if you actually read the post you COULD see it was not completed .
All YOUR remark did is created unnecessary e-mail traffic.
Please - let it slide in future , or stick to the original post and contribute with real answer instead of cluttering things with superficial "administration".
Thanks
Re: Code block editing [message #1828550 is a reply to message #1828542] Thu, 11 June 2020 18:50 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
The onlu coloring I have seen on preprocessor directives is when the part of the code is not active, see attached image.
index.php/fa/38319/0/
  • Attachment: Colors.png
    (Size: 13.36KB, Downloaded 204 times)


--

Tauno Voipio
Previous Topic:Indexer not finding symbol 'SCB->CCR'
Next Topic:float type works with Keil but not with Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 19:23:27 GMT 2024

Powered by FUDForum. Page generated in 0.03261 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top