<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Cédric Bosdonnat - GeSHi</title><link href="https://bosdonnat.fr/" rel="alternate"></link><link href="https://bosdonnat.fr/feeds/tag/geshi.atom.xml" rel="self"></link><id>https://bosdonnat.fr/</id><updated>2008-09-12T12:56:00+02:00</updated><subtitle>A geek's perspective</subtitle><entry><title>A better COOoder is here</title><link href="https://bosdonnat.fr/a-better-coooder-is-here.html" rel="alternate"></link><published>2008-09-12T12:56:00+02:00</published><updated>2008-09-12T12:56:00+02:00</updated><author><name>Cédric Bosdonnat</name></author><id>tag:bosdonnat.fr,2008-09-12:/a-better-coooder-is-here.html</id><summary type="html">&lt;p&gt;This new version of the syntax highlighting extension for
OpenOffice.org brings the announced features. Many thanks for those who
brought their improvement ideas.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The language definition files are written on one line: 40% of time
    is thus gained during the definition file reading.&lt;/li&gt;
&lt;li&gt;The regular expressions used to find …&lt;/li&gt;&lt;/ul&gt;</summary><content type="html">&lt;p&gt;This new version of the syntax highlighting extension for
OpenOffice.org brings the announced features. Many thanks for those who
brought their improvement ideas.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The language definition files are written on one line: 40% of time
    is thus gained during the definition file reading.&lt;/li&gt;
&lt;li&gt;The regular expressions used to find the keywords are compiled and
    stored in a regexp cache: this gains only 3% of time on the snippet
    highlighting... but it's already interesting on huge snippets.&lt;/li&gt;
&lt;li&gt;A progress bar is now showing the highlighting progress.&lt;/li&gt;
&lt;li&gt;The languages names are sorted in the listbox... but their display
    name is still not shown.&lt;/li&gt;
&lt;li&gt;A fix for problems with keywords starting with the character &lt;strong&gt;?&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The update site is not ready and the updated sources will be soon
available on the Gnome SVN in the ooo-build project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bosdonnat.fr/data/COOoder.oxt"&gt;COOoder.oxt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt; The sources can be browsed on &lt;a href="https://github.com/cbosdo/coooder"&gt;GitHub&lt;/a&gt;&lt;/p&gt;</content><category term="LibreOffice"></category><category term="GeSHi"></category><category term="OpenOffice.org"></category></entry><entry><title>GeSHi for OpenOffice.org</title><link href="https://bosdonnat.fr/geshi-for-openofficeorg.html" rel="alternate"></link><published>2008-07-05T09:50:00+02:00</published><updated>2008-07-05T09:50:00+02:00</updated><author><name>Cédric Bosdonnat</name></author><id>tag:bosdonnat.fr,2008-07-05:/geshi-for-openofficeorg.html</id><summary type="html">&lt;p&gt;As I have promised it in a later post, here is a first version
of the OpenOffice.org extension for syntax highlighting. There are still
some things to improve like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;reading the languages files: this could certainly be optimized to
    avoid parsing the language file at each parsing time.&lt;/li&gt;
&lt;li&gt;generating …&lt;/li&gt;&lt;/ul&gt;</summary><content type="html">&lt;p&gt;As I have promised it in a later post, here is a first version
of the OpenOffice.org extension for syntax highlighting. There are still
some things to improve like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;reading the languages files: this could certainly be optimized to
    avoid parsing the language file at each parsing time.&lt;/li&gt;
&lt;li&gt;generating the languages files: add a parameter to remove the new
    lines in the XML definitions of the language.&lt;/li&gt;
&lt;li&gt;present the display names of the languages and sort them by
    alphabetical order in the language selection dialog.&lt;/li&gt;
&lt;li&gt;add some error dialogs for the user to understand problems.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do not hesitate to report any bug here if you find some.
&lt;a href="https://bosdonnat.fr/data/COOoder.oxt"&gt;COOoder.oxt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit 2008, 06/07:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/cbosdo/coooder"&gt;Sources&lt;/a&gt;&lt;/p&gt;</content><category term="LibreOffice"></category><category term="GeSHi"></category><category term="OpenOffice.org"></category></entry><entry><title>OOo for coders (2)</title><link href="https://bosdonnat.fr/ooo-for-coders-2.html" rel="alternate"></link><published>2008-06-13T08:59:00+02:00</published><updated>2008-06-13T08:59:00+02:00</updated><author><name>Cédric Bosdonnat</name></author><id>tag:bosdonnat.fr,2008-06-13:/ooo-for-coders-2.html</id><summary type="html">&lt;p&gt;Some times ago I have written a post about an OpenOffice.org
extension to present code snippets in &lt;a href="https://bosdonnat.fr/ooo-for-coders.html"&gt;OOo with syntax highlighting&lt;/a&gt;.
You may thing that this project is forgotten... but I'm writing here to
tell the contrary: I'm coding it when I have some time between work and
social …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Some times ago I have written a post about an OpenOffice.org
extension to present code snippets in &lt;a href="https://bosdonnat.fr/ooo-for-coders.html"&gt;OOo with syntax highlighting&lt;/a&gt;.
You may thing that this project is forgotten... but I'm writing here to
tell the contrary: I'm coding it when I have some time between work and
social life, that is to say slowly.&lt;/p&gt;
&lt;p&gt;The GeSHi engine is now almost completely ported to OpenOffice.org: I
only need to add the support for the case insensitivity. However I'm not
providing anthing yet because there are a few things that are still
missing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Proper language definition files in XML support. The current tests
    are done with a code snippet mixing several languages with a hard
    coded language definition. The next step is to define an XML schema
    for the language definition files and make the language service read
    it.&lt;/li&gt;
&lt;li&gt;A tool converting the GeSHi configuration files into the XML
    language definition files.&lt;/li&gt;
&lt;li&gt;The automated creation of the styles from the language definition
    during thhe syntax highlighting. The styles are currently used but
    manually defined.&lt;/li&gt;
&lt;li&gt;A GUI to apply the syntax highlighting.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I will provide some dev snapshot of the extension when it will be usable
even if you have to configure some things manually. However I can't
promise any date... this will completely depend on my available time and
mood. Stay tuned...&lt;/p&gt;</content><category term="LibreOffice"></category><category term="GeSHi"></category><category term="OpenOffice.org"></category></entry><entry><title>OOo for coders ?</title><link href="https://bosdonnat.fr/ooo-for-coders.html" rel="alternate"></link><published>2008-04-08T11:48:00+02:00</published><updated>2008-04-08T11:48:00+02:00</updated><author><name>Cédric Bosdonnat</name></author><id>tag:bosdonnat.fr,2008-04-08:/ooo-for-coders.html</id><summary type="html">&lt;p&gt;From my first project report containing code at school I had
the need to create a syntax highlighting tool for OpenOffice.org. These
last years I had no time to do it. Even if I don't have more currently,
having stopped the Eclipse plugin for OpenOffice.org development gives
me …&lt;/p&gt;</summary><content type="html">&lt;p&gt;From my first project report containing code at school I had
the need to create a syntax highlighting tool for OpenOffice.org. These
last years I had no time to do it. Even if I don't have more currently,
having stopped the Eclipse plugin for OpenOffice.org development gives
me a little more time for it.&lt;/p&gt;
&lt;p&gt;To implement such a tool, I started from &lt;a href="http://qbnz.com/highlighter/"&gt;GeSHi&lt;/a&gt;, the famous PHP tool
for syntax highlightinh. I'm converting the GeSHi algorithm into a Java
extension for OpenOffice.org. The only problem is that applying
OpenOffice.org styles for the highlighting imposes rethinking some parts
of the algorithm. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GeSHi adds the style for a string before having found its end. In
    OpenOffice.org I need to get the end of the string before defining
    its style.&lt;/li&gt;
&lt;li&gt;GeSHi defines the style of the escaped characters first and then
    finds the end of the string. In OpenOffice.org I first need to get
    the end of the string to set the string style before setting the
    escaped characters style.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After some other troubles like these there will be an OpenOffice.org
extension to format source code in a clean and easy way. Thus stay
tuned...  &lt;/p&gt;</content><category term="LibreOffice"></category><category term="GeSHi"></category><category term="OpenOffice.org"></category></entry><entry><title>Uno IDL syntax highlighting in PHP</title><link href="https://bosdonnat.fr/uno-idl-syntax-highlighting-in-php.html" rel="alternate"></link><published>2006-08-20T11:20:00+02:00</published><updated>2006-08-20T11:20:00+02:00</updated><author><name>Cédric Bosdonnat</name></author><id>tag:bosdonnat.fr,2006-08-20:/uno-idl-syntax-highlighting-in-php.html</id><summary type="html">&lt;p&gt;Uno IDL is the component specification language of OpenOffice.org. Here
is a solution to show some highlighted Uno IDL code. It uses &lt;a href="http://qbnz.com/highlighter/"&gt;GeSHi&lt;/a&gt;
and you need to add a language file describing how to parse and colorize
you Uno IDL code. As this language file doesn't exist I created …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Uno IDL is the component specification language of OpenOffice.org. Here
is a solution to show some highlighted Uno IDL code. It uses &lt;a href="http://qbnz.com/highlighter/"&gt;GeSHi&lt;/a&gt;
and you need to add a language file describing how to parse and colorize
you Uno IDL code. As this language file doesn't exist I created one.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bosdonnat.fr/data/OpenOffice.org/idl.phps"&gt;Download the GeSHi language file now&lt;/a&gt;&lt;/p&gt;</content><category term="LibreOffice"></category><category term="GeSHi"></category><category term="IDL"></category><category term="OpenOffice.org"></category></entry></feed>