11个代码高亮的实现方法(转)

11个代码高亮的实现方法

来源: webresourcesdepot.com

11 Syntax Highlighters To Beautify Code Presentation

GeSHi (Generic Syntax Highlighter - With PHP)

11个代码高亮的实现方法 8cd89728e89c1fa1

GeSHi is a powerful syntax highlighter script that supports almost every language.

It is first created for phpBB forum system but became a project itself. It requires PHP to run (there is also a hack to make it work under ASP ).

SyntaxHighlighter (With JS)

11个代码高亮的实现方法 599ec09d899bd273

This is a flexible & extensible syntax highlighter built with JavaScript. It supports a wide range of languages from CSS to PHP or C++ to SQL.

SyntaxHighlighter offers ready-to-use themes an new ones can be created easily for a custom presentation.

It has support for 3rd party applications like Blogger, WordPress, Joomla & many others.

 

Google Code Prettify (With JS)

11个代码高亮的实现方法 27eadd0c5d1bc34a

This is the script used by the Google Code website . The script auto-detects the language used and highlights the code accordingly.

It is also customizable via CSS.

There is also an AS3 port to this code highlighting script named as3syntaxhighlight .

Highlight.js (With JS)

11个代码高亮的实现方法 679820476c73c07e

Highlight.js is very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.

It has support for 3rd party applications and provides a Firefox extension for viewing code that doesn’t have syntax highlighting .

SHJS - Syntax Highlighting in JavaScript (With JS)

11个代码高亮的实现方法 1dbc6e398cd26103

SHJS uses language definitions from GNU Source-highlight . This gives SHJS the ability to highlight source code written in many different languages.

Chili (With jQuery)

11个代码高亮的实现方法 67be173ea182c81c

Chili is a code higlighter plugin for jQuery . It works very fast & can be totally customized.

It comes bundled with support for popular languages & the download package has examples on usage.

beautyOfCode (With jQuery)

11个代码高亮的实现方法 f2e624a93699cfdb

This jQuery syntax highlighter plugin uses Alex Gorbatchev’s SyntaxHighlighter but with a twist: produces more xhtml-compliant codes.

Lighter.js (With MooTools)

11个代码高亮的实现方法 6a8d399f64d4fd35

Lighter.js is a MooTools-based code highlighter that can create outputs in various formats like ordered lists and tables.

It has a GeSHi-like class naming & requires MooTools 1.2.1+

ColourCode (With Ruby)

11个代码高亮的实现方法 cd3601d9365b6b98

ColourCode is written in Ruby . It can read a source file and generate a syntax highlighted version in various formats.

Ultraviolet (With Ruby)

11个代码高亮的实现方法 d5ab008d88621957

Ultraviolet is a syntax highlighting engine that runs on Ruby . It has support for 50+ languages & 20+ themes.

Pygments (With Python)

11个代码高亮的实现方法 e6f2ec8652701eec

It is a syntax highlighter that is built with Python . Pygments supports a wide range of languages, various output formats & it is usable as a command-line tool or as a library.

Tags: Syntax Highlight , 代码高亮

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值