Raised This Month: $32 Target: $400
 8% 

Syntax highlight for [code] blocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-02-2018 , 06:54   Syntax highlight for [code] blocks
Reply With Quote #1

ViolentMonkey/TamperMonkey/GreaseMonkey/WhateverMonkey script that highlights all those uncolored [code] blocks by automatically attempting to recognize what language is used within them. Uses highlight.js library to achieve this.
Download: https://gist.github.com/rsKliPPy/31c...hlight.user.js


Examples:

JSON:


Markdown:


Python:
__________________

Last edited by klippy; 03-02-2018 at 06:54.
klippy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode