Unable to highlight the code in r19.

Issue #39 resolved
韦彤 周 created an issue

Code Highlighting is not working in r19 released on 20, January. I've tried to set custom colors, but still not working. Picture is shown below. Snipaste_2019-02-13_13-23-58.png

Comments (7)

  1. Aleksey Lyashin repo owner

    Working fine for me. Can't reproduce so far. Please give as much details as you can. What's your operational system? Are you using the distribution archive from BitBucket or building from source? If you're building from source - are you sure you're building the master branch? Which Qt version are you building with?

    I'm also very sorry to say this, but I cannot support Windows 10 or MacOS.

  2. 韦彤 周 reporter

    Well, I'm using Windows 10 1809 (Build 17763), and running the program included in the distribution archive.

  3. Aleksey Lyashin repo owner

    Try finding file C:\Users\<your user name>\AppData\Local\vsedit.config And erase section "theme" from it. Or edit your theme settings and save them.

  4. 韦彤 周 reporter

    It worked after deleting the "theme" section in the config file. Both the default color and the color customization are working fine.

  5. 韦彤 周 reporter

    Here is the "theme" section in the config file that doesn't work. :

    [theme]
    active_line_color=#e8e8e8
    comment=@ByteArray(\0\0\0\0\0\0\0\x1\0\0\b!\0\0\0\x42\0\0\x1\xff\xff\xaa\xaa\xaa\xaa\x7f\x7f\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0)
    common_script_text=@ByteArray(\0\0\0\0\0\0\0\0)
    keyword=@ByteArray(\0\0\0\0\0\0\0\x1\0\0\b!\0\0\0\x42\0\0\x1\xff\xff\0\0\xff\xff\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0)
    number=@ByteArray(\0\0\0\0\0\0\0\0)
    operator=@ByteArray(\0\0\0\0\0\0\0\x1\0\0\b!\0\0\0\x42\0\0\x1\xff\xff\xff\xff\xaa\xaa\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0)
    selection_matches=#ffccff
    string=@ByteArray(\0\0\0\0\0\0\0\x1\0\0\b!\0\0\0\x42\0\0\x1\xff\xff\xaa\xaa\0\0\xff\xff\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0)
    text_background_color=#ffffff
    timeline_bookmarks=#ff00ff
    timeline_text=@ByteArray(\0\0\0\0\0\0\0\0)
    vs_argument=@ByteArray(\0\0\0\0\0\0\0\0)
    vs_core=@ByteArray(\0\0\0\0\0\0\0\x1\0\0\b!\0\0\0\x42\0\0\x1\xff\xff\0\0\0\0\xff\xff\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\xf0\0\0\0\0\0\0)
    vs_function=@ByteArray(\0\0\0\0\0\0\0\0)
    vs_namespace=@ByteArray(\0\0\0\0\0\0\0\0)
    
  6. 韦彤 周 reporter

    It seems that r19 cannot read the "theme" section in the config file generated by r18. And that can cause the problem above. r18 uses @Variant and r19 uses @ByteArray .

  7. Log in to comment