question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BOM syntax-highlighting issue

See original GitHub issue

When opening tests/tests.ts from https://github.com/typeStrong/csproj2ts , the syntax highlighting is off by one character. I believe this is due to the presence of a UTF-8 BOM.

Also of note, is that changing the encoding in another editor (to remove the BOM) and then re-opening the file in alm does not resolve the issue. I had to quit ALM and then go back in for it to show the syntax highlighting properly.

I would like to take a crack at fixing this myself.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nycdotnetcommented, Oct 8, 2016

Thanks. I notice you are dangerously close to 1000 stars.

0reactions
nycdotnetcommented, Oct 11, 2016

Thanks man. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

UTF-8 BOM breaks syntax highlighting. - meld - GitLab - GNOME
Comparing two CSharp files is not syntax highlighting past the first line. It is picking up on the fact that the file is...
Read more >
BOM and syntax highlighting - Google Groups
After fixing the parser issue, I wanted to check how the syntax highlighter had to be updated to support files starting with a...
Read more >
Files with custom extension and an UTF8 BOM are not ...
View it in the GitLab UI. It does not have syntax highlighting. Possible fixes. Update rouge to 3.x.x.. ### Summary The current rouge...
Read more >
Syntax highlighting in projects shows invalid errors when java files ...
When importing a gradle project that has a few files saved using "UTF8 with BOM" encodng, the IDE fails to detect the classes...
Read more >
71224 - UTF-8 BOM rendering issues - chromium - Monorail
Issue 71224: UTF-8 BOM rendering issues · 1. Edit the base template file with notepad++ and save it as UTF-8 with BOM ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found