Syntax highlight for [code] blocks
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: https://i.imgur.com/qpW0AfF.png Markdown: https://i.imgur.com/Q8sDGnf.png Python: https://i.imgur.com/rwpa3HF.png |
Re: Syntax highlight for [code] blocks
Another wonderful work from you, KliPPy. :up:
Here, have some :bacon!::bacon!::bacon!: |
Re: Syntax highlight for [code] blocks
Hey, is there an AMXX language for highlight.js? If not would you be able to make that?
|
Re: Syntax highlight for [code] blocks
C is good enough for it, I didn't want to add many languages because then hl.js has harder time deciding what language it actually is in the [code] block.
|
Re: Syntax highlight for [code] blocks
Quote:
|
All times are GMT -4. The time now is 07:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.