Display TAB/NBSP/EOL/EOF

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 155
Joined: Fri Jan 20, 2017 1:11 pm

Display TAB/NBSP/EOL/EOF

Post by Isabelle »

Hello,

In XML Author, you can choose, thanks to preferences HMI, to display or not the elements TAB/NBSP/EOL/EOF.
If you choose to display them, you have this in your project's options :

Code: Select all

        <options>
            <serialized xml:space="preserve">
                <serializableOrderedMap>
                    <entry>
                        <String>editor.show.space</String>
                        <Boolean>true</Boolean>
                    </entry>
                    <entry>
                        <String>editor.show.tab.eol_eof</String>
                        <Boolean>true</Boolean>
                    </entry>
                    <entry>
                        <String>editor.tab.eol.eof.color</String>
                        <String>255,0,51</String>
                    </entry>
With oxygen xml 26, is it possible to have the same behavior ?
Is it possible to set this options in frameworks file or use an API to set those options ?

Regards,
Isabelle
Radu
Posts: 9246
Joined: Fri Jul 09, 2004 5:18 pm

Re: Display TAB/NBSP/EOL/EOF

Post by Radu »

Hi Isabelle,
A framework cannot impose global settings in Oxygen.
A plugin can impose global settings in Oxygen, for example a WorkspaceAccess plugin extension type can use this API:
https://www.oxygenxml.com/InstData/Edit ... a.io.File)
For example a Javascript based Oxygen plugin which uses our Java APIs to force set some global settings from an XML options file when Oxygen starts:
https://github.com/oxygenxml/wsaccess-j ... sAccess.js
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Isabelle
Posts: 155
Joined: Fri Jan 20, 2017 1:11 pm

Re: Display TAB/NBSP/EOL/EOF

Post by Isabelle »

Hi Radu,

Thank you for your quick response.
I have tried and it works perfectly.

Regards,
Isabelle
Post Reply