4.1.14 Colour Syntax Bug

hippy

Ex-Staff (retired)
With Colour Syntax Editing selected, loading a file containing back-ticks ( ` ) they are converted to apostrophes ( ' ) ... which when saved royally mangles up my ascii text circuits and other cdiagrams drawn as comments.<code><pre><font size=2>.-------------------------------.
| So that's ruined my Christmas |
`-------------------------------' </font></pre></code> Okay; it hasn't really :)

Edited by - hippy on 12/26/2005 4:40:18 AM
 

Technical

Technical Support
Staff member
At present this is actually deliberate to ensure correct colour coding of programs, as at present the system only supports the conventional apostophe as a comment marker. Unfortunately many users want to cut and edit from .pdf files and the pdf copy process often corrupts this symbol. We may be able to work around this in future releases.
 

hippy

Ex-Staff (retired)
The easiest solution to the problem would be, when converting back-ticks etc to only convert the first on the line and leave the rest alone. The colour syntax parser should switch to 'comment mode' after the first apostrophe or semicolon and know the rest of the line is still a comment regardless of what it contains.

It's also converting back-ticks etc which are embedded within strings ( eg in SERTXD, SEROUT, EEPROM ).
 
Top