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.

Syntax highlighting not working in codemirror

See original GitHub issue

What could I be doing wrong?

screen shot 2016-03-15 at 8 03 52 pm

My markdown looks like:

React component example:

    <div>
      <JumpingDots/>
    </div>

Config:

module.exports = {
 title: 'My Great Style Guide',
  components: 'src/**/*.jsx',
  highlightTheme: "material",
//shortened for brevity
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pastelskycommented, Mar 16, 2016

@sapegin In my case, the only classes I see are CodeMirror-line and CodeMirror-code . No other classes. Doesn’t look like a css problem.

screen shot 2016-03-16 at 6 39 02 am
0reactions
sapegincommented, Sep 25, 2017

Finally I was able to really investigate and fix this issue: https://github.com/styleguidist/react-styleguidist/issues/611

Read more comments on GitHub >

github_iconTop Results From Across the Web

Codemirror syntax highlighting doesn't seem to work · Issue #34
I have it working great EXCEPT the syntax highlighting just doesn't work. I included the necessary library modes (ie: Javascript, PHP) and theme ......
Read more >
Why does highlight not working on implement CodeMirror? - v6
I connect those files from codemirror and I add <pre> and </pre> before and after java code lines. And it is not working....
Read more >
How to highlight syntax in codeMirror - Stack Overflow
You need to load the mode for the language you want to highlight. In this case, load mode/javascript/javascript.js from the distribution.
Read more >
Syntax Highlighter | Documentation for Tiki Wiki CMS ...
In Tiki7 and Tiki8, CodeMirror was not enabled by default in new installations, so that it had to be enabled through: "Admin home...
Read more >
Highlight code problems - Bug graveyard - Obsidian Forum
Hi All. I'm making a theme for Obsidian, and wanted to make a good code highlighting without plugins right inside the theme.
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