Syntax Highlight Code Blocks

#3.25 / 8 rate

Syntax Highlight Code Blocks

983 users

2015-05-07

Mackenzie Zastrow

zastrowm+webextensions...

Extension Information

5 star
0%
4 star
20%
3 star
40%
2 star
20%
1 star
20%

Supported Languages

Permissions

Description

Adds a context menu that provides the ability to add syntax hightlighting to code blocks contained in the page.

Some blogs/websites just put snippets of code inside of a pre > code block without syntax highlighting. This is alright, but for developers reading the code, it would be helpful if it actually included syntax highlighting. This extension, on activation via the context menu, finds all pre > code blocks an highlights them with highlight.js (https://highlightjs.org/).

Icons from Simple Icon (http://simpleicon.com/code-optimization.html) and Iconspedia (http://www.iconspedia.com/icon/source-code-icon-22943.html)

- Version 1.4 adds support for converting multiline pres (w/no code block)
- Version 1.3 adds support for msdn.microsoft.com magazine code snippets
- Version 1.2 adds support for msdn.microsoft.com library simple code snippets