Author Topic: Making Code::Blocks work with semantic highlighter plugin  (Read 4508 times)

Offline yruss

  • Single posting newcomer
  • *
  • Posts: 2
Making Code::Blocks work with semantic highlighter plugin
« on: October 27, 2013, 11:25:11 pm »
Hi,

Can someone make a step by step guide "How to make C::B work with semantic highlighter plugin"? or just explain it to me and i'll make the guide by myself with screenshots.

http://forums.codeblocks.org/index.php/topic,16249.60.html    <- here is the thread with the plugin on the last page

Since it's the only working way to implement this very useful feature. It's very unfortunate that it's still not in c::b.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Making Code::Blocks work with semantic highlighter plugin
« Reply #1 on: October 28, 2013, 02:40:05 am »
Trivial on Linux.

1. Make sure you have codeblocks-dev package installed

2. Download the files and extract them.

3. Open "SemanticHighlight.cbp" in Code::Blocks

4. Click compile (you will probably get an error in prep.h -- if so, goto project -> build options -> check the "-ansi" flag, which is 3rd item down)

5. Goto Plugins -> Manage Plugins -> Install New... find the just created SemanticHighlight.cbplugin

Now watch as your source is rendered. The thread you linked to and a very superficial look at the code suggests that it can't be configured through the GUI yet.

If you are on windows, I suspect you won't have much luck as there are a bunch of hardcoded linux paths in the sources and you will need to change the project files quite a bit. This is one reason why the plugin isn't in C::B's repo.
« Last Edit: October 28, 2013, 04:03:38 am by dmoore »