← Back to context

Comment by croes

1 year ago

So Con #3 makes it rather unusable

>For example, words within <p> tags that are JS keywords will be always highlighted

(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.

  • Readability 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.

It 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