Opened 13 years ago

Last modified 9 years ago

#99 new task

Syntax Coloring

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: trivial Milestone: svndigest 0.x+
Component: output Version: trunk
Keywords: Cc:

Description

Change History (14)

comment:1 Changed 12 years ago by Jari Häkkinen

Milestone: 0.60.7

comment:2 Changed 12 years ago by Peter Johansson

Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available.

http://colorer.sourceforge.net/

comment:3 Changed 12 years ago by Jari Häkkinen

Milestone: 0.70.8

comment:4 Changed 11 years ago by Peter Johansson

An alternative could be GNU source-highlight although I'm not certain there is an API. Also it uses Boost regex library, so we'd need to amend list of requirements.

comment:5 Changed 11 years ago by Peter Johansson

I emailed Lorenzo Bettini, the maintainer of source-highlight, and for v2.12 he's planning to separate out a library with its API.

comment:6 Changed 10 years ago by Peter Johansson

Version 3.0 is now released and it contains a C++ API.

comment:7 Changed 10 years ago by Peter Johansson

(In [840]) refs #99. Create a branch for source highlight

comment:8 Changed 10 years ago by Peter Johansson

Milestone: svndigest 0.8svndigest 0.9
Status: newassigned

comment:9 Changed 9 years ago by Peter Johansson

Status: assignednew

port install of GNU source-highlight v3.0.1 crashes with segmentation fault during configure phase on my system (Mac OSX 10.4), so I will postpone this that is fixed.

comment:10 in reply to:  9 Changed 9 years ago by Jari Häkkinen

Replying to peter:

port install of GNU source-highlight v3.0.1 crashes with segmentation fault during configure phase on my system (Mac OSX 10.4), so I will postpone this that is fixed.

Have you tried to fix the port problem yourself or you are waiting for the port maintainer to spot and fix the problem? I have had a few cases where the issue has been on my side and after some work with the port machinery the issues have been solved.

comment:11 Changed 9 years ago by Peter Johansson

Trying again it almost worked. The build went through but port stops during the install phase. The problem is that source-highlight tries to install 3rd party m4 files owned by autoconf-archive. That creates a clash.

Noticed that the port is still at 3.0.1 while there already is a 3.1.3. I've written a patch that is updates port to use latest version and avoids installation of the m4 files.

Also, I did send a bug report to source-highlight maintainer, but it bounced because I'm not surscribed; will try again later today.

comment:12 Changed 9 years ago by Peter Johansson

source-highlight comes with a .pc file just like plplot, hence the autoconf code for finding source-highlight will be very similar. Rather copy-paste-n-edit, I think I'll try to create a macro based on the plplot detection code.

comment:13 in reply to:  11 Changed 9 years ago by Peter Johansson

Replying to peter:

Also, I did send a bug report to source-highlight maintainer, but it bounced because I'm not surscribed; will try again later today.

The issue has been fixed upstreams in source-highlight and will be included in next release (v3.1.5)

http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=c151d8a60bf3b12302cfe616e033299a7401988b

comment:14 Changed 9 years ago by Peter Johansson

Milestone: svndigest 0.9svndigest 0.x+
Note: See TracTickets for help on using tickets.