TPT Syntax Highlighted Code Boxes

Syntax highlights <code> boxes on the powder toy forums.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Johannes Kadak
今日安裝
0
安裝總數
21
評價
0 0 0
版本
1.3.0
建立日期
2014-11-30
更新日期
2014-12-06
尺寸
3.7 KB
授權條款
未知
腳本執行於

Description

This script highlights <code> boxes on powdertoy.co.uk. It uses Highlight.js for that, with a nice style that looks sort of like GitHub's code viewer. Here's an image:

Changelog

1.0: First release.
1.1: Second release - parry a weird timing bug that should definitely never happen.

Download

Either here, or on gist.github.com: https://gist.github.com/boxmein/53666432360934db4cd6

License

This script is free to use under the MIT license. &copy: 2014 boxmein (Johannes Kadak).