Changes between Version 1 and Version 2 of TracSyntaxColoring


Ignore:
Timestamp:
Jun 21, 2008, 6:11:58 PM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v1 v2  
    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://www.codento.com/people/mtr/genscript/ GNU Enscript]
    99 * [http://silvercity.sourceforge.net/ SilverCity]
    1010
    11 シンタックスハイライトを有効にするためには、ただこれらのパッケージをインストールするだけです。追加のコンフィグレーションは必要ありませんが、カラーリングを修正するためには、 `trac/htdocs/css/code.css` を参照してください。
     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://trac.edgewall.org/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 ||
     
    6464|| XML      || X ||  ||
    6565
    66 ''(*) [wiki:WikiFormatting WikiFormatting] の WikiProcessors でシンタックスハイライトが対応しています。''
     66''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.''
    6767
    68 ''(1) Enscript では Ruby のハイライトは含まれていません。 Ruby のハイライトルールは [http://neugierig.org/software/ruby/] から入手することができます。''
     68''(1) Ruby highlighting is not included in the Enscript distribution.  Highlighting rules for Ruby can be obtained from: http://neugierig.org/software/ruby/
    6969
    70 ''(2) C# のハイライトは Enscript の配布物には含まれていません。 C# 用のハイライトのルールは http://wiki.hasno.info/index.php/Csharp.st より入手可能です。
     70''(2) C# highlighting is not included in the Enscript distribution.  Highlighting rules for C# can be obtained from: http://wiki.hasno.info/index.php/Csharp.st
    7171
    72 == その他のソフトウェア ==
     72== Extra Software ==
    7373 * GNU Enscript -- http://directory.fsf.org/GNU/enscript.html
    7474 * GNU Enscript for Windows -- http://gnuwin32.sourceforge.net/packages/enscript.htm