Scintilla icon SciTE

SciTE でよくある質問SciTE Frequently Asked Question

よくある質問Frequently Asked Questions

全てのテキストに固定幅フォントを使うにはどうしたらいいのですか?How do I use a fixed width font for all text?

以下の特性を利用してください。

Use these properties:

font.base=$(font.monospace)
font.small=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)
font.text.comment=$(font.monospace)
font.embedded.base=$(font.monospace)
font.embedded.comment=$(font.monospace)
font.vbs=$(font.monospace)

use.monospaced はどうしたの?What happened to use.monospaced?

use.monospaced 特性は削除されました。上記の固定幅フォントの正しい指定方法を使ってください。

The use.monospaced property was removed as people were using it to ask for fixed width fonts and then requiring support to cope with its limitations. The correct way to set fixed width fonts is here.

line.numbersがうまく動作しません。Why doesn't my line.numbers setting work?

line.numbers は二つの特性に置き換えられました。line.margin.visibleline.margin.width の説明をご覧ください。

line.numbers has been replaced with two properties: line.margin.visible and line.margin.width which are explained earlier in this document.

SciTE の背景色を黒にするには?How do I change SciTE to use black as the background colour?

書式設定を変更する必要があります。共有設定特性ファイルで標準書式やキャレットの色を変更するのが主な変更内容ですが、うまく動作させるには他の書式設定も変更する必要があるでしょう。
style.*.32=$(font.base),back:#000000,fore:#ffffff
caret.fore=#FFFFFF

You need to change the style settings. The main change is in the global options file to the global default style and caret colour but you may have to change other style settings to make this work well:
style.*.32=$(font.base),back:#000000,fore:#ffffff
caret.fore=#FFFFFF

出力部の色を変えるには?How do I change the colours of the output pane?

出力部はしばしばエラーと警告の一覧を表示し、"errorlist" 解析器で色づけなどをおこないます。省略時に errorlist が使用する書式設定は other.porperties です。出力部の背景色を黒に、またその通常のテキストを白にするには次のように指定します。
style.errorlist.32=$(font.small),back:#000000
style.errorlist.0=fore:#FFFFFF

The output pane often lists error and warning messages and is styled by the "errorlist" lexer. The default errorlist styles are found in others.properties. To change the ouput pane background to black and the default text to white set
style.errorlist.32=$(font.small),back:#000000
style.errorlist.0=fore:#FFFFFF

水平スクロールバーをテキストの幅に合わせるには?How do I make the horizontal scroll bar adjust to the width of text?

水平スクロールバーの処理が遅くなるのを避けるために自動補正を禁止することができます。horizontal.scroll.width 特性で水平スクロール幅を設定してください。

To avoid slow performance the horizontal scroll bar does not automatically adjust. You can use the horizontal.scroll.width property to change the horizontal scroll range.

SciTE でタブウィンドウモードにするには?How do I enable tabbed window mode in SciTE?

タブウィンドウモードは Windows と GTK+ 2 で可能です。GTK+ 1 では使えません。複数のバッファが設定で使用可能になっている必要がありますので SciTEGlobal.properties 内で buffers=10 などのように buffers を 2 以上にします。次に SciTE 起動時にタブを有効にするには tabbar.visible=1 を設定します。tabbar.hide.one=1 を設定しておくと開いているファイルが一つだけのときにタブを隠すことができます。tabbar.multiline=1 が設定されていれば必要なときにタブを縦にも重ねられるようになります。

Tabbed window mode is only available on Windows and GTK+ 2, not on GTK+ 1. Multiple buffers must be allocated by setting, for example, buffers=10 in your SciTEGlobal.properties. To have the tab bar visible upon starting SciTE, set tabbar.visible=1. You can also set tabbar.hide.one=0 to always show tabs, or 1 to hide when only one file is open. tabbar.multiline=1 splits tabs across various lines if neccesary.

自動補完を使えるようにするには?How do I enable autocomplete?

オプションメニューの「共有設定ファイルを開く」でファイルを開いて autocompleteword.automatic=1 を有効にしてください。

Goto Options | Open Global Options File and uncomment
autocompleteword.automatic=1

コンパイル・ビルド・実行をしたところ '指定されたファイルが見つかりません' というエラーが出力されました。When I try to compile/build/run my [some language] source files, I get the following error: 'The system cannot find the file specified'.

コンパイラへのパスが正しいことを確認してください。コンソールから SciTE が実行しようとしたコマンドと同じものを入力し、それが動作するかを試します。[プログラミング言語名].properties ファイルの中でどのようなコンパイルコマンドを使うかを探すことができます。もし異なるコンパイラを使ったり異なる引数を使ったりする場合は、それに応じてこのファイルを編集する必要があります。次のような行を探してください。
command.compile.filepattern=
command.build.filepattern=
command.go.filepattern=

Make sure that the path to your compiler is set correctly on your system. Try to execute from console the same command you get in SciTE and see if it works. You can also search in your [language].properties for the compile commands used. If you have a different compiler or use different arguments, edit the commands to suit your needs. The lines to look for:
command.compile.filepattern=
command.build.filepattern=
command.go.filepattern=

ツールメニューに外部アプリケーションを追加するには?How can I add [some external application] to the tools menu on SciTE?

特性ファイルで何行か追加する必要があります。

In your properties file, you'll need to add some lines:

command.name.number.filepattern
(例: command.name.1.$(file.patterns.web)=HTML Tidy)
上記でツールメニューに出す文字列を定義します。

command.name.number.filepattern
(e.g.: command.name.1.$(file.patterns.web)=HTML Tidy)
This defines the Text that will appear on the Tools Menu.

command.number.filepattern
(例: command.1.$(file.patterns.web)=tidy -i -wrap 0 -m $(FilePath) )
上記は SciTE が実際に実行するコマンドです。適切なパス名やオプション・引数をコマンドラインから実行するときと同様に与えなくてはなりません。

command.number.filepattern
(e.g.: command.1.$(file.patterns.web)=tidy -i -wrap 0 -m $(FilePath) )
This is the actual command that SciTE executes. You should provide the appropiate paths, options and parameters as you would from a command line. See SciTEDoc.html for more information on parameters and how to make SciTE prompt a Parameters Dialog.

command.is.filter.number.filepattern
(例.: command.is.filter.1.$(file.patterns.web)=1)
外部アプリケーションが SciTE で編集中のファイルを変更することもあります。この設定を 1 にすることで SciTE に実行後の再読込を要求します。

command.is.filter.number.filepattern
(e.g.: command.is.filter.1.$(file.patterns.web)=1)
The external application may have modified your file, so setting this to true makes SciTE reload the file after execution of the command.

command.subsystem.number.filepattern
(例.: command.subsystem.1.$(file.patterns.web)=2)
Windows では subsystem を通してどの手段で外部アプリケーションを起動するかを指定できます。

command.subsystem.number.filepattern
(e.g.: command.subsystem.1.$(file.patterns.web)=2)
This is for Windows and defines the subsystem through which the program is called. See SciTEDoc.html for more information on this.

filepattern に * を指定することで全てのファイルに対するコマンドを設定できます。最大 10 (0〜9) のコマンドをツールメニューに定義できます。コマンドは Ctrl+数字 の操作でも実行できます。

You can set a command for all files using * as a file pattern. Up to 10 commands (0 - 9) can be defined in the Tools Menu at any time. Commands also get executed with Ctrl+number.