Oberon Community Platform Forum
December 13, 2019, 03:21:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Syntax Highlighter  (Read 3842 times)
Full Member
Posts: 170

« on: June 23, 2010, 06:49:49 PM »

It makes sense to set the defaultstyle parameter value of all highlighters to "Normal"
<Highlighter name="Oberon" defaultstyle="Normal">
<Highlighter name="XML" defaultstyle="Normal">
because when increasing fontsize in styles the result looks weird

* syntax.png (9.6 KB, 468x485 - viewed 675 times.)
« Last Edit: June 23, 2010, 06:57:47 PM by sage » Logged
Sr. Member
Posts: 387

« Reply #1 on: June 23, 2010, 10:14:38 PM »

Yes, it does.

But it also means that the formatting of the original text is completely ignored. Then again, the best syntax highlighting results are achieved by doing so.
Originally I thought it would be nice to be able to mix up manual with automatic highlighting - but storing just some "magic" parts of the text formatting was simply too confusing.

-> At the end of the day the syntax highlighting doesn't make much sense on formatted text.  That's why I started to store source code in ASCII respectively UTF-8 instead of the Oberon file format. This also eases interoperation with the none-Oberon world.

Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!