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.

Htmlmixed mode does not correctly color custom elements

See original GitHub issue

Custom elements is a new spec that has been accepted and is currently being implemented by browsers. Custom elements require a - inside the name, for example <paper-button></paper-button>. Currently htmlmixed mode does not detect these tags. See https://github.com/webcomponents/webcomponents.org/issues/859 for usage of CodeMirror breaking highlighting of these tags. Instead of all red, the text before the - is red and afterwards orange. The expected behavior is that the whole name is red.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
marijnhcommented, Feb 23, 2017

I’ve released 5.24.2 with the fix, so that it hopefully won’t impact too many people.

1reaction
adrianheinecommented, Feb 15, 2017

@marijnh usually cuts one release per month, as you can see from the tag overview.

Read more comments on GitHub >

github_iconTop Results From Across the Web

codemirror html mixed mode not being applied to JavaScript
I'm having two issues. The first is that javascript isn't being colored properly. I've included all the dependencies (xml, css and js). The...
Read more >
Php - JS - HTML mixed code coloring/highlighting doesn't ...
Php - JS - HTML mixed code coloring/highlighting doesn't work whil in PHP ... Open a php file; Be sure that VS Code...
Read more >
HTML mixed mode - CodeMirror
The HTML mixed mode depends on the XML, JavaScript, and CSS modes. It takes an optional mode configuration option, tags , which can...
Read more >
Implementing a Code Syntax Highlight in HTML mode
The solution is based on a custom third-party syntax editor, which replaces the source mode textarea of RadEditor when switching to HTML mode...
Read more >
mix-blend-mode - CSS-Tricks
normal : this attribute applies no blending whatsoever. multiply : the element is multiplied by the background and replaces the background color ...
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