Unmatched < meant as Literal < Breaks Highlighting When inline HTML is Present
See original GitHub issueFor example:
| Thing 1 | Description |
|----------------------|-----------------------|
| HTML | First some html.<ul><li>One</li><li>Twp</li></ul> |
| `<` | Don't do this, everything goes to hell |
| Other line | RED MODE ACTIVATED |
| `'` | No more red |
As it appears in the editor:
Note that the <
cannot be replaced with <
as that displays as a literal <
and it’s the single quotes in the text description that gets the red treatment, which will continue until either another '
is found (anywhere) or the end of the file is reached. Nor can the '
or '<
be escaped (e.g. \'
or \<
).
This makes it particularly frustrating to edit the markdown page for a custom esolang where <
one command and I require a bulleted list in the description for another command (as it does multiple things, based on its inputs) and the syntax highlighting in this case makes the text under it nearly impossible to read.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
A case against syntax highlighting - Linus Åkesson
Background. Syntax highlighting is a standard feature of most modern text editors and development environments. The basic idea is to exaggerate ...
Read more >syntax.txt - Vim
Vim supports syntax highlighting on all terminals. But since most ordinary terminals have very limited highlighting possibilities, it works best in the GUI ......
Read more >Highlight the difference between two strings in PHP
Just wrote a class to compute smallest (not to be taken literally) number of edits to transform one string into another string:.
Read more >Bikeshed Documentation - GitHub Pages
inline links, with optional title. It does not recognize "autolinks" (surrounded by <> characters), images, or "hard line breaks"; use HTML for ...
Read more >HTML5 - W3C
A list of current W3C publications and the latest revision of this ... The elements of HTML: Each element has a predefined meaning, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I haven’t deployed the changes yet. It should be live soon.
On Sat, Oct 26, 2019, 7:57 PM Draco18s notifications@github.com wrote:
The simplest solution could be a mode where you can disable warnings and such highlights. Fixing the syntax highlighting would require diving into the source of codemirror or updating codemirror and seeing if the latest version has fixed it.
Unfortunately I don’t have time these days for making a detailed fix, but a disable-warnings mode or subtler warning CSS is on the way.
On Mon, Jan 14, 2019, 10:32 PM Draco18s <notifications@github.com wrote: