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.

Async highlighting

See original GitHub issue

Hi, is there a way to know when highlighting is finished? Would be awesome to have ability to take a callback, so it’ll work nicely with something like marked markdown parser: https://github.com/chjj/marked

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rayshancommented, Mar 31, 2014

Thanks Ivan. I actually am using marked with angularjs for the front-end. I did read that section on marked’s readme, however the async implementation is with pygmentize-bundled, and I like highlight.js 😃

I think what you said about initHighlighting() will work. I’ll wrap that in angularjs’s $q and report back.

0reactions
joshgoebelcommented, Sep 18, 2021

This just loads the library async, that has nothing to do with the topic of this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing asynchronous highlighting #3035 - PrismJS/prism
We recently had an issue with WebPack and async highlighting. The problem was that our current WebWorker approach assumes that the script ...
Read more >
Async syntax highlighting plugin? : r/neovim
I'm wondering if anyone has written an async syntax highlighting plugin, similar to chromatica.nvim but dumber? Like, literally if it just ran the...
Read more >
How to fix no highlight for "async" "await" keywords | VSCode
For some reason async and await keywords are not highlighted. "Python" and "Python for VSCode" are installed and globally enabled.
Read more >
VS Code Semantic highlighting does not highlight async ...
Moved this from server thread Introducing Swift for Visual Studio Code the highlighting is not done by VSCode, it is done by sourcekitd....
Read more >
Highlighting of matching code elements - JetBrains Rider
You can configure some of these highlightings with the Highlight context exits and Highlight related async/await keywords options on the Editor ...
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