3 ms·
So Con #3 makes it rather unusable >For example, words within <p> tags that are JS keywords will be always highlighted
by croes 2y ago
So Con #3 makes it rather unusable
>For example, words within <p> tags that are JS keywords will be always highlighted
- williamdclt 2y agoIt certainly heavily limits the usability, but there’s plenty of use cases where there’s not much free text. Comment highlighting would still be an issue though
- california-og 2y ago(Author) Sure, it depends on your requirements, what you want your syntax highlighter to do. I wouldn't use it as my coding font (in its current form at least). But just because a few words inside regular text could be highlighted, doesn't make the code that much less readable — in the context of code snippets on websites.
- croes 2y agoReadability isn't the problem, but people could get confused. Especially because some keywords are usual words like in or with. But still great idea nevertheless.