Adds a context menu that provides the ability to add syntax hightlighting to code blocks contained in the page.
Syntax Highlight Code Blocks Extension
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
Read more
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
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Syntax Highlight Code Blocks", "version": "1.4", "description": "Adds a context menu that provides the ability to add syntax hightlighting to code blocks contained in the page.", "author": "Mackenzie Zastrow", "permissions": [ "activeTab", "contextMenus" ], "background": { "scripts": ["background.js"], "persistent": false }, "icons": { "32": "icon-32.png", "48": "icon-48.png", "128": "icon-128.png" }, "manifest_version": 2}
Read more