SynEdit/ja

From Lazarus wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Deutsch (de) English (en) español (es) français (fr) 日本語 (ja) polski (pl) русский (ru) 中文(中国大陆)‎ (zh_CN)

SynEditとは

SynEditはTSynEditというソースエディタコンポーネント、文法ハイライト表示オブジェクトや、ソース編集に使う他のコンポーネント群などを含むパッケージです。

これは、SynEdit 1.3をベースとして開発され、沢山の拡張が加えられました。たとえば、UTF-8サポートや、コードフォールディングなどが加えられています。

IDEのSynEdit

lazarusのSynEditはビルトインパッケージです。なぜなら、IDEはSynEditそのものを使うからです。それで、.lpkファイルが無いのです。 このコンポーネントは、コンポーネントパレットの'SynEdit' ページにあります。

SynEditの例

SynEditを使った例が lazarus/examples/synedit1.lpi にあります。

さらなる開発と、その議論

  • RTL (right-to-left): started by Mazen
  • automatic monospace font selection: At the moment SynEdit starts with a font 'courier'. But it would be better, if SynEdit would start with a monospace font (meaning: every character has the same width). At the moment the LCL TFont does not provide such a property. At the moment the user has to choose the right font.
  • automatic UTF-8 font selection: Same as above monospace, but also with an UTF-8 font, so that for example umlaute are shown correctly. At the moment the user has to choose the right font.
  • Dead keys. Most keyboards support typing two or more keys to create one special character (like accented or umlaut characters).
  • Redesign of the SynEdit component. The primary goal is more reliable display and navigation in the text. A more modular approach also allows for better integration of extensions, and for specialized controls, for use outside of Lazarus.