Oberon Community Platform Forum
November 21, 2019, 07:20:24 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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



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

It makes sense to set the defaultstyle parameter value of all highlighters to "Normal"
Quote
<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 664 times.)
« Last Edit: June 23, 2010, 06:57:47 PM by sage » Logged
staubesv
Administrator
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.

Logged
Pages: [1]
  Print  
 
Jump to:  

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