0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Windows版gedit】Fortranでcから始まる行がコメントになる問題を解決

Last updated at Posted at 2018-01-02

問題の概要

Windows版geditでFortran95を強調表示にしている時、
cから始める行はコメントとして認識され、青色表示にされてしまう。
before.JPG

固定方式の時代にcから始める行はコメントであったのだが、
なぜかWindows版geditにおいてはf95にもその使用が適用されているようだ。

このままでは、call文を使う時など、ちょっと不便。

解決方法

(geditのフォルダ)\share\gtksourceview-2.0\language-specs\fortran.lang

を編集。

fortran.lang/47行目/修正前
<start>!|(^[Cc](\b|[^Oo]))</start>

47行目の|(^[Cc](\b|[^Oo]))を削除。

fortran.lang/47行目/修正後
<start>!</start>

geditを再起動すれば、完了。
after.JPG

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?