User script for highlighting syntax within [code] tag at 2ch.hk
For Google Chrome
you should install the Tampermonkey. The stable version is 3.10.84
. Go to play market
`
For Mozilla Firefox
you should install the Greasemonkey. The stable version is 3.1
. Go to add-ons
Other browser
hasn't tested yet. Find the userscript for your browser and use it on your own risk.
The latest version of Macabacode is stored in the master
branch of the repository.
Google Chrome
- Click on the
Tampermonkey
icon in the right upper corner. Check whether the extension has been enabled. - Click the button
Add a new script...
- In opened window past the contents of the makabaCode
- Click
save
Firefox
Install script (Greasemonkey should be enabled)
The extension works only for 2ch.hk/pr board. This extension gives you an opportunity to use the [code][/code]
tag that can help you to format your piece of code.
You should wrap your piece of code with
[code lang="programming_laugnage"] %your code% [/code]
And post the message. No more operations - your message will automatically convert to normal view.
Caution! if there are lots of messages with [code][/code]
wrapper the extension can have a profound effect on performance of your browser.