source code editor/ja

From Lazarus wiki
Revision as of 03:19, 22 March 2024 by Ariben (talk | contribs) (Created page with "{{Japanese Menu}} A '''ソースコードエディタ''' is an editor program particularly addressing programmers’ demands, either exclusively (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報


A ソースコードエディタ is an editor program particularly addressing programmers’ demands, either exclusively (cf. IDE) or as part of a general-purpose suite.

特徴

A source code editor is not a text processor, instead:

  • It uses an single mono space western font of one size and with uniform spacing [e.g. Courier is such a font].
  • Lines have a unique height and spacing.
  • There are no hidden attributes added to the stored text.
  • Text attributes are used only for #syntax highlighting or similar predefined purposes.
  • All text is left justified. Indentation is done with tabstops.
  • Long lines are not automatically wrapped on hyphens (hyphenated word) or syllable boundaries.
  • There is no document, page or paragraph formatting or layout.

Some common and desirable features are:

Additional useful extensions:

Also desireable, but not for source code editing:

Unsorted

(to be categorized)

Font

For traditional and performance reasons, a mono space font shall be used. This allows to manage the display in form of a grid, with easy mapping between screen coordinates and character indices. Most compilers only accept ASCII code, other characters can be used only in comments.

Of course support for other character sets (input and display) and input orientation (right-to-left) can be added - by persons with according knowledge and skills. I have no idea how to e.g. mix RTL string literals with LTR program code. OTOH I'm not comfortable with ASCII text myself, as are many more non-English speakers. I'll support any (every?) attempt to remove language barriers from SynEdit, but cannot contribute many ideas or techniques to this subject.

See also