[Question] What is the recommended way to get Syntax Highlighting?
See original GitHub issueFirst 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:
- Created 9 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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.