News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Making Code::Blocks work with semantic highlighter plugin

Started by yruss, October 27, 2013, 11:25:11 PM

Previous topic - Next topic

yruss

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.next.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.

dmoore

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.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]