Raised This Month: $ Target: $400
 0% 

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 , 07: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 07:54.
klippy is offline
 


Thread Tools
Display Modes

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 22:37.


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