CodeGlance icon indicating copy to clipboard operation
CodeGlance copied to clipboard

Missing or incorrect hilighting for various languages

Open vektah opened this issue 9 years ago • 0 comments

There are a bunch of issues that all come back to the way CodeGlance gets its syntax highlighting.

I cant find a way to get the processed color information for each character, so instead I run the tokenizer for the language over the file again. This works pretty well, but many language plugins do a second pass once the AST has been built. This means these things are missing:

  • colors on very dynamic languages (javascript, groovy). They have very simple tokenizers and move everything into ast processing.
  • embedded language blocks.

vektah avatar Mar 11 '17 03:03 vektah