Changes between Version 2 and Version 3 of TracSyntaxColoring


Ignore:
Timestamp:
Dec 31, 2005, 4:43:10 PM (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v2 v3  
    1 = ソースコードのカラーシンタックス =
    2 Tracは[wiki:WikiFormatting Wiki形式]のテキストと[wiki:TracBrowser リポジトリブラウザ]で、ソースコードにその言語特有の色づけ(シンタックスハイライト)をサポートしています。
     1= Syntax Coloring of Source Code =
     2Trac supports language-specific syntax highlighting of source code in [wiki:WikiFormatting wiki formatted] text and the [wiki:TracBrowser repository browser].
    33
    4 色付けを行うために、Tracはとても多くのプログラミング言語をサポートしている外部のライブラリを使用しています。
     4To do this, Trac uses external libraries with support for a great number of programming languages.
    55
    6 現在、Tracは以下にあげる1つ以上のパッケージを使用して、シンタックスハイライトをサポートしています:
     6Currently Trac supports syntax coloring using one or more of the following packages:
    77
    88 * [http://people.ssh.fi/mtr/genscript/ GNU Enscript]
    99 * [http://silvercity.sourceforge.net/ SilverCity]
    1010
    11 シンタックスハイライトを有効にするためには、ただこれらのパッケージをインストールするだけです。追加のコンフィグレーションは必要ありません。
     11To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is required, however to modify the colors, have a look at `trac/htdocs/css/code.css`.
    1212
    13 シンタックスハイライトを使用するとき、可能な限りTracは自動的にEnscriptよりもSilverCityのハイライトを優先します(下の注を参照のこと)。
     13When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below).
    1414
    15 どちらのパッケージも使用できないときは、Tracはプレインテキストでデータを表示します。
     15If neither package is available, Trac will display the data as plain text.
    1616
    17 '''Note:''' Enscriptはとても多くのプログラミング言語をサポートしますが、SilverCityはライブラリが一つで、外部プロセスで実行しないので、Enscriptよりも処理が速いです。
     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.
    1818
    19 === SilverCity について ===
    20 SilverCityは[http://www.scintilla.org/ Scintilla]のlexerを使用します。ScintillaはSilverCityが実装しているよりもより多くのプログラミング言語をサポートしています。もし、SilverCityにScintillaでサポートされているプログラミング言語を追加したいならば、そんなに難しいことではありません。どのようにすればいいのかは、[http://projects.edgewall.com/trac/wiki/SilverCityAddLanguage SilverCityAddLanguage]を参照してください。
     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.
    2121
    2222
    23 == サポートしているシンタックスハイライト ==
     23== Syntax Coloring Support ==
    2424
    2525|| || !SilverCity || Enscript ||
     
    4040|| IDL      ||   || X ||
    4141|| Javascript || X || X ||
     42
    4243|| m4       ||   || X ||
    4344|| Makefile ||   || X ||
     
    5051|| Pyrex    ||   || X ||
    5152|| * Python || X || X ||
    52 || * Ruby   || X || X ||
     53|| * Ruby   || X || X (1) ||
    5354|| Scheme   ||   || X ||
    5455|| Shell    ||   || X ||
     
    6364|| XML      || X || X ||
    6465
    65 ''(*)印は[wiki:WikiFormatting WikiFormatting]のWikiProcessors でシンタックスハイライトがサポートされています。''
     66''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.''
    6667
    67 == その他のソフトウェア ==
     68''(1) Ruby highlighting is not included in the Enscript distribution.  Highlighting rules for Ruby can be obtained from: http://neugierig.org/software/ruby/
     69
     70== Extra Software ==
    6871 * GNU Enscript -- http://people.ssh.fi/mtr/genscript/
    6972 * !SilverCity -- http://silvercity.sf.net/
    7073
    7174----
    72 参考: WikiProcessors, WikiFormatting, TracWiki, TracBrowser
     75See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser