C editor with text formatting and context awareness

132 views Asked by At

I am looking for a .c editor that has:

1) text formatting, for example to set some line to bold/italic or different color

2) context awareness For example I would like to automatic highlight for a code section. For example between the call to function A and the call to function B to have a different background color. If I call function A

Or if I am using a local variable that is not initialized to have the variable name marked in red.

Do you know any editor with such features?

Thank you.

2

There are 2 answers

5
Anony-mouse On

I could suggest you a hell lot with syntax highlighting.Sublime on linux,windows notepad ++ on windows,visual studio etc.

But when considering your second requirement I realise that not many editors satisfy the condition and it is better for you to use vim and modify it accordingly.

A few links i can post which will help you achieve the same C/C++ ide using vim

Another one to refer is this question from SO itself Vim for C

Thanks

0
MKK On

Or if I am using a local variable that is not initialized to have the variable >name marked in red.

That actually sounds like Intellisense or some other smart code checking. You can try Microsoft Visual C++ Express and just save files as '.c' instead of '.cpp'.

You can try as well CodeBlocks, CLion (commercial), Code (not as smart, but lightweight and cross-platform).