Codinion

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Enhanced Syntax Highlighting
  • Priority Very Low
  • Reported Version 1.0.0.3216 Beta
  • Due in Version Undecided
  • Votes
  • Private
Attached to Project: Codinion
Opened by wmj - 03.02.2016
Last edited by Martin Topfstedt - 09.02.2016

FS#38 - String highlight rule not applied after restart VS

I changed the string highlight rule to color black and use the Verdana font, but it was deactivated after restarting VS.

Closed by  Martin Topfstedt
09.02.2016 18:32
Reason for closing:  Fixed
Additional comments about closing:  in 1.0.0.3247 Beta
wmj commented on 03.02.2016 01:22

The version of Codinion should be 3216 beta.
And the color should be #FF2F4F4F.

We can find that Codinion was writing out malformed XML documents. Some extra characters were left behind the end tag of the XML document in the CurrentTheme.xml file.

Admin
Martin Topfstedt commented on 03.02.2016 08:31

hi,

yes i guess the problem has todo with the UTF-8 encoding of the xml file which does not support all languages. I will change it to unicode.

wmj commented on 03.02.2016 12:26

UTF-8 shall support all languages.
There must be some other problems.

wmj commented on 03.02.2016 12:57

It seems that you are using XmlSerializer to save the theme files and the configuration file.
I used to do so, and now I switched to use JSON format, which were faster, more flexible and less error-prone.

BTW, I found the reason why the new theme was not applied:
It did write the new theme XML file to the theme folder, but the theme reference was still pointing to the old binary theme file.

wmj commented on 03.02.2016 13:01

And there was a bug when writing out the XML theme file.
If the serialized XML theme file was smaller than the existing one, for instance, 30 bytes smaller, those 30 bytes would not be truncated but remained in the file, which would result in a malformed XML file.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing