Changes between Version 1 and Version 2 of TracSyntaxColoring
- Timestamp:
- Jun 21, 2005, 1:13:36 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracSyntaxColoring
v1 v2 1 = Syntax Coloring of Source Code=2 Trac supports language-specific colorization (syntax highlighting) of source code in [wiki:WikiFormatting WikiFormatted] text and the [wiki:TracBrowser Source Browser].1 = ソースコードのカラーシンタックス = 2 Tracは[wiki:WikiFormatting Wiki形式]のテキストと[wiki:TracBrowser リポジトリブラウザ]で、ソースコードにその言語特有の色づけ(シンタックスハイライト)をサポートしています。 3 3 4 To do this, Trac uses external libraries with support for a great number of programming languages. 4 色付けを行うために、Tracはとても多くのプログラミング言語をサポートしている外部のライブラリを使用しています。 5 5 6 Currently Trac supports syntax coloring using one or more of the following packages:6 現在、Tracは以下にあげる1つ以上のパッケージを使用して、シンタックスハイライトをサポートしています: 7 7 8 8 * [http://people.ssh.fi/mtr/genscript/ GNU Enscript] 9 9 * [http://silvercity.sourceforge.net/ SilverCity] 10 10 11 To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is needed. 11 シンタックスハイライトを有効にするためには、ただこれらのパッケージをインストールするだけです。追加のコンフィグレーションは必要ありません。 12 12 13 When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below). 13 シンタックスハイライトを使用するとき、可能な限りTracは自動的にEnscriptよりもSilverCityのハイライトを優先します(下の注を参照のこと)。 14 14 15 If neither package is available, Trac will display the data as plain text. 15 どちらのパッケージも使用できないときは、Tracはプレインテキストでデータを表示します。 16 16 17 '''Note:''' Enscript supports a greater number of languages, however !SilverCity is generally faster since it is a library and isn't executed in an external process.17 '''Note:''' Enscriptはとても多くのプログラミング言語をサポートしますが、SilverCityはライブラリが一つで、外部プロセスで実行しないので、Enscriptよりも処理が速いです。 18 18 19 === About SilverCity===20 !SilverCity uses the lexer from [http://www.scintilla.org/ Scintilla]. Scintilla supports more languages than !SilverCity implements. If you want to add a language to !SilverCity supported by Scintilla, it's not very difficult. See [http://projects.edgewall.com/trac/wiki/SilverCityAddLanguage SilverCityAddLanguage] for some information how. 19 === SilverCity について === 20 SilverCityは[http://www.scintilla.org/ Scintilla]のlexerを使用します。ScintillaはSilverCityが実装しているよりもより多くのプログラミング言語をサポートしています。もし、SilverCityにScintillaでサポートされているプログラミング言語を追加したいならば、そんなに難しいことではありません。どのようにすればいいのかは、[http://projects.edgewall.com/trac/wiki/SilverCityAddLanguage SilverCityAddLanguage]を参照してください。 21 21 22 22 23 == Syntax Coloring Support==23 == サポートしているシンタックスハイライト == 24 24 25 25 || || !SilverCity || Enscript || … … 63 63 || XML || X || X || 64 64 65 ''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.''65 ''(*)印は[wiki:WikiFormatting WikiFormatting]のWikiProcessors でシンタックスハイライトがサポートされています。'' 66 66 67 == Extra Software==67 == その他のソフトウェア == 68 68 * GNU Enscript -- http://people.ssh.fi/mtr/genscript/ 69 69 * !SilverCity -- http://silvercity.sf.net/ 70 70 71 71 ---- 72 See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser72 参考: WikiProcessors, WikiFormatting, TracWiki, TracBrowser