[原] 给LilyBBS新增源代码语法高亮功能
使用方法:
[code]
代码
[/code]
目前支持:C/C++、Java、Python、Bash、SQL、HTML、XML、CSS、Javascript、Makefile、Ruby、PHP、Awk、Perl
效果示例:
#include <stdio.h>
int main() {
printf(“Many people think they are full of niubility,”);
}
import org.bianbian.code;
class CodeTest() {
public static void main(String[] args) {
System.out.println(“and like to play zhuangbility,”);
}
}
<?php
echo ‘which only reflect their shability.’;
?>
采用的是prettify,为LilyBBS的客户端解析UBB做了点修改。推荐一下,还是挺好用的。
©2012 便便代码人生. All Rights Reserved.
. 标签: BBS, Lily遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道