[Geany-Users] adding manual code folding points for geany

Lex Trotman elextr at xxxxx
Mon Aug 24 09:20:44 UTC 2015

Code folding is provided by C++ code from Scintilla and compiled into
Geany.  One example is the LexFortran.cxx you have.  You would need
such a lexer for your language.  The lexer usually also gives you
syntax highlighting for the language.

As its compiled into Geany you need the Geany source code from github.
You will then find the LexFortran.cxx (and friends) in the
scintilla/lexers/ directory.

You need to read the hacking file in the Geany top level which
describes how to add a new lexer and the scintilla documentation and
the example of all the other lexers.  The lexers are simply state
machines so an electrical engineer should have no trouble with them.


On 24 August 2015 at 17:59, hakan aydın <hak_an_aydin at hotmail.com> wrote:
>  Hello guys,
>  I am an intern at Spark Calibration Services.They have developed a local
> language on geany and I am trying to add code folding points on it. I come
> accross this linkhttp://wiki.geany.org/howtos/adding_fold_points) but
> couln't get a clue. First of all, i am trying to figure out how to do this
> on a familiar language(ie. fortran), then i will convert this procedure to
> the local language. I have downloaded fortran
> lexer(http://sourceforge.net/p/scintilla/code/ci/c8042eb1bd3e5596d96621a5cf23958d72a4d83a/tree/lexers/LexFortran.cxx).
> Which directory should i add this lexer? And what should i do next?
> ps: I study electrical engineering and unfortunately i don't know much about
> text editors. So please write the basic steps to do it.
> Thank you very much,
> Hakan Aydın
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list