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.

[Question] What is the recommended way to get Syntax Highlighting?

See original GitHub issue

First of all, congratulations for this amazing blogging platform that I am glad and proud to use for my blog.

I saw multiple ways to get Syntax Highlighting with Prism.js and Highlight.js (what I am currently using). However, I would like to know if there is some plugin/recommended way to integrate the embedded GitHub markdown using ````<language>` to highlight the code.

Regarding this markdown syntax highlight, I found the plugin ghost-prism-plugin and two closed issues: #1091 and #1431. However, everything seems to be really old, leaving me with the only option of using some custom JS library instead of something integrated with the markdown.

Thank you, Carlos.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinansfieldcommented, Jul 10, 2018

@andy1247008998 ```language is supported markdown but you will need to add a client-side syntax highlighting library to your theme or through the Code Injection screen to get syntax highlighting, there’s no built-in support for that as it’s very much a theme-level concern.

1reaction
carlosbarazacommented, Mar 16, 2015

By the way, I open a new issue on purpose and aware of the recommendation of using IRC/Forum to ask questions. I open it to request the integration of the syntax highlighter in Ghost itself. I could participate on such integration submitting a pull request if accepted such idea.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Highlight Guide | Visual Studio Code Extension API
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords...
Read more >
What is syntax highlighting and how does it work?
Syntax highlighting allows code in posts to be highlighted based on the language it's written in, to make it easier to read. How...
Read more >
What is syntax highlighting and how does it work?
Syntax highlighting allows code in posts to be highlighted based on the language it's written in, to make it easier to read. How...
Read more >
Syntax highlighting - Wikipedia
Syntax highlighting is a feature of text editors that are used for programming, scripting, or markup languages, such as HTML. The feature displays...
Read more >
What editors are best used for q coding? And how to get the ...
I have tried vim, emacs and sublime. I find significant quality of life improvement when using highlighting while I code in q.
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