Sunday, 15 April 2012

Re: [GeSHi-devel] tools for writing/testing language file

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBT4qKw5w3120Y2Wc/AQKwnAf+PFyZ3nlOOkPVD+7kJibgNB/wK5FHrMO7
jOFRC7GoXgB6o9w2ES2hKrgnymGJb52LILVAp54yrgqYJkyLOZ5JyZ/BcEra1Qt4
UnJTu6QL1vwvZltiJuZ41j6IvNoGPIaowwRr6i8PfcmxFDTI3jWMvRrWyHXrURVd
NEBU38sdX9MGnwhZ6C1CNX/UM/tz3d+6RDaTwrTtW9ttkTG41C+V68jBTjo8Fxm3
BKdOZWuTeIoHK1WSZYKBMK24EX+2epd2T/6GGj53fGJnkOHDPZ7lk86/VJC+zaeE
ynELL+t/+lB618MMCtPAMgu8r1FzyFQANbf6S91FOgEhuTxT2v8hjw==
=dbbA
-----END PGP SIGNATURE-----
Hi,

Am 11.04.2012 21:28, schrieb Carnë Draug:
> Hi
>
> I've been trying to write a language file for the octave language. I
> have read the documentation but still have some doubts on the syntax.
> I was wondering if there's some tool/text editor where I could
> easily/quickly test the file as I develop it.
There are two options:
1. Use the code samples directory for putting your files in and calling
the runtests script. There's an ?lang=yourlangfile option to only
highlight sources of a given source lange.
2. Putting some source e.g. in WordPress or another program using GeSHi
and reload the page

In both cases just put the language file in the directory where all the
other language files are. Upon saving just reload in your webbrowser and
GeSHi will pick up the modified language file when highlighting the
source again. Be sure to use something that doesn't cache (the runtests
script does not and thus is suited for it).
> Basically I would like
> something that I could refresh, and it would automatically pick the
> saved language file which would allow me to explore better by trial
> and error.
>
> For example, when I wrote the same language file for gtksourceview,
> all I had to do was reselect the language on gedit and it would pick
> up the newly saved file. Is there such a thing for GeSHi?
Yes, as explained above. Please also ensure to run the langcheck script
for your language to ensure future compatibility and the language being
free from errors.
>
> Thanks in advance,
> Carnë
Best regards,
BenBE.

No comments:

Post a Comment