[NOTE: This documentation has simply been copy-pasted from the HTML form and is NOT up to date, I recommend you
read that instead]
GeSHi Documentation
Version 1.0.7.22
Author: Nigel McNie, Benny Baumann
Copyright: © 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
Email: nigel@geshi.org, BenBE@omorphia.de
GeSHi Website: http://qbnz.com/highlighter
This is the documentation for GeSHi - Generic Syntax Highlighter. The most modern version of this document is available on the web - go to http://qbnz.com/highlighter/documentation.php to view it.
Any comments, questions, confusing points? Please contact me! I need all the information I can get to make the use of GeSHi and everything related to it (including this documentation) a breeze.
Contents
* 1. Introduction
o 1.1 Features
o 1.2 About GeSHi
o 1.3 Credits
o 1.4 Feedback
* 2. The Basics
o 2.1 Getting GeSHi
o 2.2 Installing GeSHi
+ 2.2.1 Requirements
+ 2.2.2 Extracting GeSHi
+ 2.2.3 Installation
o 2.3 Basic Usage
* 3. Advanced Features
o 3.1 The Code Container
o 3.2 Line Numbers
+ 3.2.1 Enabling Line Numbers
+ 3.2.2 Styling Line Numbers
+ 3.2.3 Choosing a Start Number
o 3.3 Using CSS Classes
+ 3.3.1 Enabling CSS Classes
+ 3.3.2 Setting the CSS Class/ID
+ 3.3.3 Getting the Stylesheet
+ 3.3.4 Using an External Stylesheet
o 3.4 Changing Styles
+ 3.4.1 The Overall Styles
+ 3.4.2 Line Number Styles
+ 3.4.3 Setting Keyword Styles
+ 3.4.4 Setting Comment Styles
+ 3.4.5 Setting Other Styles
o 3.5 Case Sensitivity and Auto Casing
+ 3.5.1 Auto Caps/Nocaps
+ 3.5.2 Setting Case Sensitivity
o 3.6 Changing the Source/Language/Path/Charset
+ 3.6.1 Changing the Source Code
+ 3.6.2 Changing the Language
+ 3.6.3 Changing the Path
+ 3.6.4 Changing the Character Set
+ 3.6.5 Using load_from_file to change the language and source code
o 3.7 Error Handling
o 3.8 Disabling Styling of Some Lexics
o 3.9 Setting the Tab Width
o 3.10 Using Strict Mode
o 3.11 Adding/Removing Keywords
+ 3.11.1 Adding a Keyword
+ 3.11.2 Removing a Keyword
+ 3.11.3 Adding a Keyword Group
+ 3.11.4 Removing a Keyword Group
o 3.12 Headers and Footers for your code
+ 3.12.1 Keyword Substitution
+ 3.12.2 Setting Header Content
+ 3.12.3 Setting Footer Content
+ 3.12.4 Styling Header Content
+ 3.12.5 Styling Footer Content
o 3.13 Keyword URLs
+ 3.13.1 Setting a URL for a Keyword Group
+ 3.13.2 Disabling URLs for a Keyword Group
+ 3.13.3 Disabling all URLs for Keywords
+ 3.13.4 Styling Links
+ 3.13.5 Setting the Link Target
o 3.14 Using Contextual Importance
o 3.15 Highlighting Special Lines "Extra"
+ Specifying the Lines to Highlight Extra
+ Styles for the Highlighted Lines
o 3.16 Adding IDs to Each Line
o 3.17 Getting the Time of Styling
* 4 Language Files
o 4.1 An Example Language File
o 4.2 Language File Conventions
o 4.3 Language File Sections
+ 4.3.1 The Header
+ 4.3.2 The First Indices
+ 4.3.3 Keywords
+ 4.3.4 Symbols and Case Sensitivity
+ 4.3.5 Styles for your Language Files
+ 4.3.6 URLs for Functions
+ 4.3.7 Object Orientation Support
+ 4.3.8 Using Regular Expressions
+ 4.3.9 Contextual Highlighting and Strict Mode
+ 4.3.10 Tidying Up
* 5 Method/Constant Reference
1: Introduction
Top | Contents | Next | Previous
GeSHi is exactly what the acronym stands for: a Generic Syntax Highlighter. As long as you have a language file for almost any computer language - whether it be a scripting language, object orientated, markup or anything in between - GeSHi can highlight it! GeSHi is extremely customisable - the same source can be highlighted multiple times in multiple ways - the same source even with a different language. GeSHi outputs XHTML strict compliant code*, and can make use of CSS to save on the amount of output. And what is the cost for all of this? You need PHP. That's all!
*Most of the time. Some languages do not output XHTML strict code, and using line numbers with the PRE header is not legal either. These problems will be fixed in 1.2.
1.1: Features
Top | Contents | Next | Previous
Here are some of the standout features of GeSHi:
* Programmed in PHP: GeSHi is coded entirely in PHP. This means that where ever you have PHP, you can have GeSHi! Almost any free webhost supports PHP, and GeSHi works fine with PHP > 4.3.0*.
* Support for many languages: GeSHi comes with about 100 languages, including PHP, HTML, CSS, Java, C, Lisp, XML, Perl, Python, ASM and many more!
* XHTML compliant output: GeSHi produces XHTML compliant output, using stylesheets, so you need not worry about GeSHi ruining your claims to perfection in the standards department ;)
* Highly customisable: GeSHi allows you to change the style of the output on the fly, use CSS classes or not, use an external stylesheet or not, use line numbering, change the case of output keywords... the list goes on and on!
* Flexible: Unfortunately, GeSHi is quite load/time intensive for large blocks of code. However, you want speed? Turn off any features you don't like, pre-make a stylesheet and use CSS classes to reduce the amount of output and more - it's easy to strike a balance that suits you.
This is just a taste of what you get with GeSHi - the best syntax highlighter for the web in the world!
*Support is granted for PHP 4.3.0 and above, but especially 4.3.x cannot be guaranteed to work due to a lack of test systems. If you are forced to use such old PHP versions complain at your hoster or contact us if you find compatibility issues so we can try to resolve them. It's only PHP 4.4.X and above that is verified to work.
1.2: About GeSHi
Top | Contents | Next | Previous
GeSHi started as a mod for the phpBB forum system, to enable highlighting of more languages than the available (which can be roughly estimated to exactly 0 ;)). However, it quickly spawned into an entire project on its own. But now it has been released, work continues on a mod for phpBB* - and hopefully for many forum systems, blogs and other web-based systems.
*I am no longer working on this MOD, however if someone else wants to they can contact me for more information.
Several systems are using GeSHi now, including:
* Dokuwiki - An advanced wiki engine
* gtk.php.net - Their manual uses GeSHi for syntax highlighting
* WordPress - A powerful blogging system*
* PHP-Fusion - A constantly evovling CMS
* SQL Manager - A Postgres DBAL
* Mambo - A popular open source CMS
* MediaWiki - A leader in Wikis*
* TikiWiki - A megapowerful Wiki/CMS
* TikiPro - Another powerful Wiki based on Tikiwiki
* RWeb - A site-building tool
* Available as plugin only. In addition, some of the other entries mentioned here may only have GeSHi available as a plugin.
GeSHi is the original work of Nigel McNie. The project was later handed over to Benny Baumann. Others have helped with aspects of GeSHi also, they're mentioned in the THANKS file.
1.3: Credits
Top | Contents | Next | Previous
Many people have helped out wit
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经过本地编译可运行的,下载完成之后配置相应环境即可使用。源码功能都是经过老师肯定的,都能满足要求,有需要放心下载即可。源码是经
资源推荐
资源详情
资源评论
收起资源包目录
基于SpringBoot的智能办公系统源码.zip (7508个子文件)
fontawesome-webfont.ttf@v=4.3.0 119KB
fontawesome-webfont.woff@v=4.3.0 70KB
fontawesome-webfont.eot@v=4.3.0 59KB
fontawesome-webfont.woff2@v=4.3.0 55KB
BUGS 2KB
CHANGES 50KB
COPYING 18KB
beyond.css 442KB
beyond-rtl.css 441KB
beyond.min.css 405KB
beyond-rtl.min.css 379KB
bootstrap-editable.css 265KB
bootstrap.css 143KB
bootstrap.css 124KB
bootstrap.min.css 118KB
bootstrap-ie6.css 113KB
bootstrap.min.css 104KB
bootstrap-ie6.min.css 94KB
ydui.css 74KB
animate.css 68KB
animate.min.css 53KB
dhtmlxgantt.css 51KB
ueditor.css 43KB
editor_ie7.css 37KB
editor_iequirks.css 36KB
handsontable.full.min.css 36KB
editor_ie8.css 36KB
editor_ie.css 35KB
editor_gecko.css 35KB
editor.css 34KB
ueditor.min.css 34KB
bootstrap-rtl.css 32KB
font-awesome.min.css 30KB
jquery-ui.min.css 28KB
font-awesome.css 28KB
font-awesome.min.css 27KB
4095-rtl.min.css 26KB
bootstrap-rtl.min.css 26KB
bootstrap-responsive.css 22KB
video-js.css 21KB
typicons.css 18KB
image.css 18KB
dialog_ie7.css 17KB
dialog_ie8.css 17KB
dialog_iequirks.css 16KB
dialog_ie.css 16KB
bootstrap-responsive.min.css 16KB
dialog.css 16KB
video.css 15KB
attachment.css 14KB
layer.css 14KB
typicons.min.css 14KB
darkblue.min.css 11KB
black.min.css 11KB
orange.min.css 11KB
gray.min.css 11KB
teal.min.css 11KB
purple.min.css 11KB
green.min.css 11KB
pink.min.css 11KB
azure.min.css 11KB
darkred.min.css 11KB
deepblue.min.css 11KB
blue.min.css 11KB
video-js.min.css 11KB
jedate.css 11KB
chosen.min.css 11KB
bootstrap-select.css 10KB
zyUpload.css 8KB
jquery.orgchart.css 8KB
weather-icons.css 7KB
bootstrap-table.css 7KB
shCoreDefault.css 7KB
bootstrapStyle-bpm.css 6KB
bootstrapStyle.css 6KB
weather-icons.min.css 6KB
style.css 6KB
dataTables.bootstrap.css 6KB
codemirror.css 6KB
theme.css 6KB
stylesheet.css 6KB
demo.css 5KB
layer.css 5KB
demo.css 5KB
style.css 4KB
scrawl.css 4KB
calendar.css 4KB
baguetteBox.min.css 3KB
demo.min.css 3KB
theme.min.css 3KB
yui.css 3KB
star-rating.css 3KB
tabstyle.css 3KB
codemirror.css 3KB
default.css 3KB
charts.css 3KB
railscasts.css 2KB
background.css 2KB
arta.css 2KB
monokai_sublime.css 2KB
共 7508 条
- 1
- 2
- 3
- 4
- 5
- 6
- 76
资源评论
知一NN
- 粉丝: 42
- 资源: 4157
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- bdwptqmxgj11.zip
- onnxruntime-win-x86
- onnxruntime-win-x64-gpu-1.20.1.zip
- vs2019 c++20 语法规范 头文件 <ratio> 的源码阅读与注释,处理分数的存储,加减乘除,以及大小比较等运算
- 首次尝试使用 Win,DirectX C++ 中的形状渲染套件.zip
- 预乘混合模式是一种用途广泛的三合一混合模式 它已经存在很长时间了,但似乎每隔几年就会被重新发现 该项目包括使用预乘 alpha 的描述,示例和工具 .zip
- 项目描述 DirectX 引擎支持版本 9、10、11 库 Microsoft SDK 功能相机视图、照明、加载网格、动画、蒙皮、层次结构界面、动画控制器、网格容器、碰撞系统 .zip
- 项目 wiki 文档中使用的代码教程的源代码库.zip
- 面向对象的通用GUI框架.zip
- 基于Java语言的PlayerBase游戏角色设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功