Dear M. Shafie,

Thanks for your help. Indeed, we could have searched for days what we did 
wrong...
It works fine now, with the procedure you provided.

Thanks again,
Best regards.
Philippe.


Philippe Nobili
Subsurface Imaging - Product Engineering
Tel: +33 16447 4090 | Mobile: +33 63756 6441

CGG,
27 avenue Carnot
Massy, 91341 - France
http://www.cgg.com

Please consider the environment before printing.


-----Original Message-----
From: Hussein Shafie [mailto:huss...@xmlmind.com]
Sent: Saturday, February 07, 2015 10:17 AM
To: nobili, philippe
Cc: 'xmleditor-support@xmlmind.com'
Subject: Re: [XXE] Fortran Syntax highlighting with XMLmind (5.9+)

On 02/05/2015 04:17 PM, nobili, philippe wrote:
>
> We wrote a fortran-hl.xml file, and referenced it in xslthl-config.xml
> in order to add syntax highlighting for Fortran in our code examples.
>
> Despite this, it does not seem to be taken into account when our code
> fragments are marked using *language="fortran",* although other
> languages would work as expected.
>
> In XMLMind documentation, we then ran through this sentence: "The
> value of attribute language *must be* any of: c, cpp, csharp,etc".
> Does "must be" mean that there is no way to customize the highlighting
> for a new language ?
>
> We realize that this might fall outside strict XMLmind support, many
> thanks for any help you might bring us on this.
>

We have modified the stock Xslthl (see attached
CHANGES_MADE_BY_XMLMIND.txt) as well as the stock DocBook XSL stylesheets (see 
attached CHANGES_MADE_BY_XMLMIND2.txt). Therefore it's very difficult for us to 
explain why it does not work when used from within XXE like it works when used 
outside XXE.

When used from within XXE, by default, Xslthl loads its xslthl-config.xml 
configuration file from a resource inside 
<XXE_install_dir>/addon/config/common/xslthl/xslthl.jar.

Now let's suppose you have added file fortran-hl.xml to 
<XXE_install_dir>/addon/config/docbook5/xsl/highlighting/ and that you have 
modified 
<XXE_install_dir>/addon/config/docbook5/xsl/highlighting/xslthl-config.xml

Adding the following properties (equivalent to system properties) to your 
customize.xxe file or to your DocBook 5 config customization file:

---
<property name="xslthl.config"

url="true">xxe-config:docbook5/xsl/highlighting/xslthl-config.xml</property>

<property name="xslthl.config.verbose">true</property>
---

will instruct Xslthl to load its configuration from your customized 
xslthl-config.xml.

The second property "xslthl.config.verbose" may be commented out after testing 
that everything works OK.

More information in
http://xslthl.sourceforge.net/wiki/index.php/Xslthl_Configuration

----
PS 1: Do not forget to add DocBook XSL stylesheets parameter
highlight.source=1 if you want to turn on syntax highlighting. See 
http://docbook.sourceforge.net/release/xsl/current/doc/html/highlight.source.html

-----
PS 2: Please contribute your fortran-hl.xml to the Xslthl project, so we can 
add it to XXE's xslthl.jar.



This email and any accompanying attachments are confidential. If you received 
this email by mistake, please delete
it from your system. Any review, disclosure, copying, distribution, or use of 
the email by others is strictly prohibited.

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to