JPH06124199A - Source code comment editor - Google Patents

Source code comment editor

Info

Publication number
JPH06124199A
JPH06124199A JP4274186A JP27418692A JPH06124199A JP H06124199 A JPH06124199 A JP H06124199A JP 4274186 A JP4274186 A JP 4274186A JP 27418692 A JP27418692 A JP 27418692A JP H06124199 A JPH06124199 A JP H06124199A
Authority
JP
Japan
Prior art keywords
input
window
source code
character
comment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4274186A
Other languages
Japanese (ja)
Inventor
Takashi Okayama
敬 岡山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP4274186A priority Critical patent/JPH06124199A/en
Publication of JPH06124199A publication Critical patent/JPH06124199A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simultaneously perform editing work while comparing a source code and a comment on a display picture and further always in the state of corresponding for each line. CONSTITUTION:The class of a character inputted from a keyboard 2 is discriminated by an input character discrimination part 12 and when it is discriminated that a cursor is moved in a line direction, an editing part 13 simultaneously moves the cursor or performs scrolling in the designated line direction on a source code window 31 and a comment window 32 by using a source code display part 111 and a comment display part 112. When a line shift code is discriminated, a line shift code is inputted to a cursor position on the currently selected window among the windows 31 and 32 and at the same time, the line shift code is also inputted to the end of the character string of the correspondent line on the other window. The edited result of the editing part 13 is preserved in different files corresponding to the source code and the comment.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ソフトウェア開発に
おけるソースプログラム作成ツールに係り、特にソース
コードとそのコメントとを同時に編集するのに好適なソ
ースコード・コメント編集装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a source program creating tool in software development, and more particularly to a source code / comment editing apparatus suitable for simultaneously editing a source code and its comment.

【0002】[0002]

【従来の技術】ソフトウェア開発において、ソースプロ
グラムを作成する場合、開発を保守する立場から、ソー
スプログラムの各ステップ毎にコメントを入れて作成者
以外の人にも理解しやすくした方がよい。しかし、ソー
スプログラムを作成していく段階でコメントを同時に入
れていくのは、ソースプログラムの行数が増加し、しか
もソースコード間にコメントが入るので、ソースプログ
ラムが読みにくくなり、開発効率が悪くなる。そのた
め、作成者によっては、ソースプログラムを完成してか
らコメントのみを入れたり、コメントを不完全にしか入
れないといった手法を用いていた。
2. Description of the Related Art In software development, when creating a source program, from the standpoint of maintaining the development, it is better to put a comment at each step of the source program so that people other than the creator can easily understand. However, adding comments at the same time as the source program is created increases the number of lines in the source program, and since comments are inserted between the source codes, it becomes difficult to read the source program and development efficiency deteriorates. Become. Therefore, some authors have used a method in which only a comment is entered after the source program is completed, or a comment is only incompletely entered.

【0003】[0003]

【発明が解決しようとする課題】上記したように従来
は、ソースプログラムの各ステップ毎にコメントを付す
場合に、そのコメントをソースプログラムを作成してい
く段階でソースコード間に挿入することから、ソースプ
ログラムが読みにくくなり、開発効率が悪くなるという
問題があった。
As described above, conventionally, when a comment is added to each step of a source program, the comment is inserted between the source codes at the stage of creating the source program. There was a problem that the source program became difficult to read and the development efficiency deteriorated.

【0004】この発明は上記事情に鑑みてなされたもの
でその目的は、ソースコードとコメントとを表示画面上
で対比させながら、同時に編集作業が行えるソースコー
ド・コメント編集装置を提供することにある。この発明
の他の目的は、ソースコードとコメントとを行毎に常に
対応させた状態で編集作業が行えるソースコード・コメ
ント編集装置を提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a source code / comment editing apparatus capable of simultaneously performing editing work while comparing a source code and a comment on a display screen. . Another object of the present invention is to provide a source code / comment editing device capable of performing editing work in a state where a source code and a comment are always associated line by line.

【0005】[0005]

【課題を解決するための手段】この発明は、ソースコー
ドを第1のウィンドウに表示すると共に、上記ソースコ
ードのコメントを第2のウィンドウに表示する表示手段
と、文字等を入力するための入力手段と、この入力手段
からの入力文字の種別を判別する入力文字判別手段と、
この入力文字判別手段の判別結果に従って第1のウイン
ドウ上でソースコードを作成・編集し、第2のウインド
ウ上でコメントを作成・編集するための編集手段とを備
えたことを特徴とするものである。
According to the present invention, a source code is displayed in a first window and a comment for the source code is displayed in a second window, and an input for inputting characters and the like. Means, and input character discrimination means for discriminating the type of the input character from the input means,
It is characterized in that it is provided with an editing means for creating / editing a source code on the first window and creating / editing a comment on the second window according to the result of the input character judging means. is there.

【0006】また、入力文字が行方向のカーソル移動を
示す制御文字である場合には、上記第1および第2のウ
インドウの両ウインドウ上で指定の行方向へ同一のカー
ソル移動またはスクロールを行わせ、改行コードである
場合には、第1および第2のウインドウのうち現在選択
されているウインドウ上のカーソル位置の他、もう一方
のウインドウ上の対応行にも改行コードを入力し、制御
文字でない通常の文字である場合には、現在選択されて
いる方のウインドウ上のカーソル位置に入力文字を入力
する機能を上記編集手段に持たせたことをも特徴とす
る。
If the input character is a control character indicating the cursor movement in the line direction, the same cursor movement or scroll is performed in the specified line direction on both the first and second windows. , If it is a line feed code, enter the line feed code not only on the cursor position on the currently selected window of the first and second windows but also on the corresponding line on the other window, and not the control character. In the case of a normal character, the editing means is also provided with a function of inputting an input character at the cursor position on the currently selected window.

【0007】[0007]

【作用】上記の構成においては、ソースコードが第1の
ウィンドウに表示され、同時にそのコメントが第2のウ
ィンドウに表示されるため、ソースコードとコメントと
を対比しながらソースコード並びにコメントの作成・編
集作業を行うことができる。
In the above structure, since the source code is displayed in the first window and the comment is displayed in the second window at the same time, the source code and the comment are created while comparing the source code and the comment. Can edit.

【0008】また、入力文字が行方向のカーソル移動を
示す制御文字である場合には、第1のウインドウと第2
のウインドウにおいて、同一のカーソル移動またはスク
ロールが同時に行われ、更に、入力文字が改行コードの
場合には、現在選択されているウインドウの上のカーソ
ル位置にその改行コードが入力されるのは勿論、もう一
方のウインドウ上の対応行にも改行コードが入力される
ため、ソースコードとコメントとを常に行毎に対応させ
た状態での作業が可能となる。もし、このような特徴あ
る制御を行わない場合には、第1のウィンドウ(または
第2のウィンドウ)を見ながら、第2のウィンドウ(ま
たは第1のウィンドウ)上で編集作業を行うことは可能
であっても、第1のウィンドウ上のソースコードと第2
のウィンドウ上のコメントとは必ずしも対応しないため
に、例えば一方のウィンドウでスクロール操作を行った
場合には他方のウィンドウでもその分のスクロール操作
を行う必要がある。
When the input character is a control character indicating the movement of the cursor in the line direction, the first window and the second window are displayed.
In the window of, the same cursor movement or scrolling is performed at the same time, and when the input character is a line feed code, the line feed code is, of course, input at the cursor position on the currently selected window. Since the line feed code is also input to the corresponding line on the other window, it is possible to work with the source code and the comment always corresponding to each line. If such characteristic control is not performed, it is possible to perform editing work on the second window (or the first window) while looking at the first window (or the second window). Even the source code on the first window and the second
Since it does not necessarily correspond to the comment on the window, the scroll operation in one window needs to be performed in the other window.

【0009】[0009]

【実施例】図1はこの発明の一実施例に係るソースコー
ド・コメント編集装置の構成を示すブロック図である。
1 is a block diagram showing the configuration of a source code / comment editing apparatus according to an embodiment of the present invention.

【0010】図1において、1はソースコード・コメン
ト編集装置の中枢をなすCPU、2は文字等を入力する
ためのキーボード、3はソースプログラムの表示等に用
いられる表示装置である。表示装置3の表示画面上に
は、ソースコード表示用のソースコードウインドウ31
とコメント表示用のコメントウインドウ32とが、左右
に対をなすように確保される(ソースプログラムの作成
・編集時)。ここでウインドウ31,32の行数(ライ
ン数)はいずれもNで同一である。4はソースコードが
保存されるファイル(以下、ソースコードファイル)、
5はコメントが保存されるファイル(以下、コメントフ
ァイルと称する)である。CPU1は、表示部11、入
力文字判別部12、編集部13およびファイル入出力部
14の各機能要素を備えている。
In FIG. 1, 1 is a CPU which is the center of a source code / comment editing device, 2 is a keyboard for inputting characters and the like, and 3 is a display device used for displaying source programs and the like. On the display screen of the display device 3, a source code window 31 for displaying source code is displayed.
And the comment window 32 for displaying the comment are secured so as to form a pair on the left and right (at the time of creating / editing the source program). Here, the windows 31 and 32 have the same number of lines (number of lines) N. 4 is a file in which the source code is saved (hereinafter, source code file),
Reference numeral 5 is a file in which comments are stored (hereinafter referred to as a comment file). The CPU 1 includes each functional element of a display unit 11, an input character determination unit 12, an editing unit 13, and a file input / output unit 14.

【0011】表示部11は、表示装置3に対する画面表
示を司るもので、ソースコード表示部111およびコメ
ント表示部112を有している。ソースコード表示部1
11は、編集部13により作成・編集されているソース
コードをソースコードウインドウ31に表示する。また
コメント表示部112は、上記ソースコードのコメント
をコメントウインドウ32に表示する。
The display unit 11 controls screen display on the display device 3, and has a source code display unit 111 and a comment display unit 112. Source code display 1
Reference numeral 11 displays the source code created and edited by the editing unit 13 in the source code window 31. The comment display unit 112 also displays the comment of the source code in the comment window 32.

【0012】入力文字判別部12はキーボード2により
入力された文字の種別を判別する。編集部13は入力文
字判別部12の判別結果に従ってソースコードウインド
ウ31上でソースコードを作成・編集し、コメントウイ
ンドウ32上でコメントを作成・編集する。ファイル入
出力部14は、ソースコードファイル4およびコメント
ファイル5と編集部13との間で、ソースコードおよび
コメントの入出力を行う。次に、図1の構成における動
作を、図2のフローチャートを参照して説明する。
The input character discriminating unit 12 discriminates the type of the character input by the keyboard 2. The editing unit 13 creates / edits the source code on the source code window 31 and creates / edits the comment on the comment window 32 according to the determination result of the input character determination unit 12. The file input / output unit 14 inputs and outputs the source code and the comment between the source code file 4 and the comment file 5 and the editing unit 13. Next, the operation of the configuration of FIG. 1 will be described with reference to the flowchart of FIG.

【0013】今、ソースコードファイル4には編集の対
象となるソースコードが保存されており、コメントファ
イル5には、その編集対象ソースコードのコメントが保
存されているものとする。
Now, it is assumed that the source code file 4 stores the source code to be edited, and the comment file 5 stores the comment of the source code to be edited.

【0014】ここで、ソースプログラム開発者がキーボ
ード2を操作して、ソースコードとコメントの編集のた
めに、ファイルの読込みを指示する制御文字と、その対
象ファイルを指定する文字列を入力したものとする。
Here, the source program developer operates the keyboard 2 to input a control character for instructing the reading of the file and a character string for designating the target file for editing the source code and the comment. And

【0015】入力文字判別部12は、キーボード2から
ファイルの読込みを指示する制御文字が入力された場
合、その旨をファイル入出力部14に通知し、その制御
文字に後続する入力文字列、即ち対象ファイルを指定す
る文字列を渡す。
When a control character for instructing the reading of a file is input from the keyboard 2, the input character discriminating unit 12 notifies the file input / output unit 14 of that fact, and an input character string following the control character, that is, Pass a character string that specifies the target file.

【0016】ファイル入出力部14は、入力文字判別部
12から渡された入力文字列の指定するファイルがソー
スコードファイル4およびコメントファイル5の場合、
即ち指定ファイルが存在する場合、その指定されたソー
スコードファイル4からソースコードを、コメントファ
イル5からコメントをそれぞれ読込み編集部13に渡
す。
The file input / output unit 14, when the files designated by the input character string passed from the input character discriminating unit 12 are the source code file 4 and the comment file 5,
That is, when the designated file exists, the source code from the designated source code file 4 and the comment from the comment file 5 are read and passed to the editing unit 13.

【0017】すると編集部13は、表示部11内のソー
スコード表示部111およびコメント表示部112を用
いて、ファイル入出力部14により読込まれたソースコ
ードを表示装置3の表示画面上に確保されたソースコー
ドウインドウ31に、同じくコメントを表示装置3の表
示画面上に確保されたコメントウインドウ32に表示さ
せる。ここで、ソースコードおよびコメントの行数が、
ウインドウ31,32の行数Nを超えている場合には、
まず第1行から始まるN行分が表示される。このとき、
カーソル(文字入力カーソル)は、ウインドウ31,3
2内の先頭行の先頭桁に表示される。
Then, the editing unit 13 uses the source code display unit 111 and the comment display unit 112 in the display unit 11 to secure the source code read by the file input / output unit 14 on the display screen of the display device 3. Similarly, in the source code window 31, the comment is displayed in the comment window 32 secured on the display screen of the display device 3. Here, the number of lines of source code and comments is
If the number of rows N in the windows 31 and 32 is exceeded,
First, N lines starting from the first line are displayed. At this time,
The cursor (character input cursor) is the window 31, 3
It is displayed in the first digit of the first line in 2.

【0018】このような状態で、ソースプログラム開発
者がキーボード2を用いて文字を入力するための操作を
行うと、対応する文字がキーボード2から入力文字判別
部12に入力される。
In such a state, when the source program developer performs an operation for inputting a character using the keyboard 2, the corresponding character is input from the keyboard 2 to the input character discriminating unit 12.

【0019】入力文字判別部12はキーボード2からの
入力文字をチェックして、制御文字であるか否かを判別
する(ステップS1)。もし制御文字の場合、入力文字
判別部12は、その制御文字の種別を判別する(ステッ
プS2)。この制御文字としては、改行コード、上カー
ソル移動([↑])を示す制御文字、下カーソル移動
([↓])を示す制御文字、左カーソル移動([←])
を示す制御文字、右カーソル移動([→])を示す制御
文字、現在作成・編集中のソースコードとコメントの保
存を指定する制御文字等がある。
The input character discrimination unit 12 checks the input character from the keyboard 2 and discriminates whether or not it is a control character (step S1). If it is a control character, the input character determination unit 12 determines the type of the control character (step S2). This control character includes a line feed code, a control character indicating up cursor movement ([↑]), a control character indicating down cursor movement ([↓]), left cursor movement ([←])
There is a control character that indicates, a control character that indicates right cursor movement ([→]), a control character that specifies saving of the source code currently being created / edited and a comment, and the like.

【0020】編集部13は、入力文字判別部12によ
り、入力文字が上カーソル移動または下カーソル移動
(行方向のカーソル移動)を示す制御文字であることが
判別された場合には、ソースコード表示部111および
コメント表示部112を用いて、ソースコードウインド
ウ31とコメントウインドウ32の両ウィンドウ上で、
上または下方向(指定の行方向)への同一の文字入力カ
ーソル移動またはスクロールを同時に行わせる(ステッ
プS3)。ここで、カーソル移動となるかスクロールと
なるかは、文字入力カーソル位置がウインドウ31,3
2内のどの行にあるかによって決まる。例えば、下カー
ソル移動を示す制御文字の場合であれば、文字入力カー
ソル位置がウインドウ31,32内の最終行にあるなら
ばスクロールとなり、それ以外ではカーソル移動とな
る。なお、左または右カーソル移動(桁方向のカーソル
移動)を示す制御文字であると判別された場合には、現
在選択されているウィンドウ上の文字入力カーソルだけ
が指定の桁方向に移動される。
When the input character discriminating unit 12 discriminates that the input character is a control character indicating upward cursor movement or downward cursor movement (cursor movement in the line direction), the editing unit 13 displays the source code. Using the section 111 and the comment display section 112 on both the source code window 31 and the comment window 32,
The same character input cursor movement or scrolling in the upward or downward direction (the designated line direction) is simultaneously performed (step S3). Here, whether the cursor is moved or scrolled is determined by the position of the character input cursor in the windows 31 and 3.
It depends on which line in 2. For example, in the case of a control character indicating the movement of the lower cursor, scrolling occurs if the character input cursor position is on the last line in the windows 31 and 32, and cursor movement otherwise. When it is determined that the character is a control character indicating left or right cursor movement (cursor movement in the digit direction), only the character input cursor on the currently selected window is moved in the designated digit direction.

【0021】また編集部13は、入力文字判別部12に
より、入力文字が改行コードであることが判別された場
合には、ソースコード表示部111が管理しているソー
スコードウインドウ31およびコメント表示部112が
管理しているコメントウインドウ32のうち、現在選択
されているウィンドウ上の文字入力カーソル位置に改行
コードを入力し、文字入力カーソルを次の行の先頭桁に
移動する(ステップS4)。同時に編集部13は、もう
一方のウィンドウ上の対応行(即ち現在文字入力カーソ
ルが存在している行)の文字列の末尾(文字列が存在し
ない場合には、その行の先頭桁)にも、改行コードを入
力し、文字入力カーソルを次の行の先頭桁に移動する
(ステップS5)。なお、ウィンドウの選択は、例えば
マウス(図示せず)を用いてマウスカーソルを所望のウ
ィンドウ内に移動し、マウスボタンをクリックすること
により行われるものとする。
Further, when the input character discriminating unit 12 discriminates that the input character is a line feed code, the editing unit 13 has a source code window 31 and a comment display unit managed by the source code display unit 111. In the comment window 32 managed by 112, a line feed code is input at the character input cursor position on the currently selected window, and the character input cursor is moved to the first column of the next line (step S4). At the same time, the editing unit 13 also applies to the end of the character string of the corresponding line (that is, the line where the character input cursor currently exists) on the other window (or the first column of the line if no character string exists). , A line feed code is input, and the character input cursor is moved to the first digit of the next line (step S5). The windows are selected by, for example, using a mouse (not shown) to move the mouse cursor into a desired window and clicking the mouse button.

【0022】以上の、同時カーソル移動または同時スク
ロール動作と、一方のウィンドウ上で改行コードが入力
された場合に、他方のウィンドウ上にも対応して改行コ
ードを入力する動作とにより、ソースコードとコメント
とを行毎に対応させることができる。
By the above simultaneous cursor movement or simultaneous scroll operation and the operation of inputting a line feed code in the other window when the line feed code is input in one window, the source code is obtained. Comments can be associated with each line.

【0023】また編集部13は、入力文字判別部12に
より、入力文字が制御文字でない通常の文字と判別され
た場合には、その入力文字を、ソースコードウインドウ
31およびコメントウインドウ32のうち、現在選択さ
れているウィンドウ上の文字入力カーソル位置に入力す
る(ステップS6)。
When the input character discriminating unit 12 discriminates the input character as a normal character which is not a control character, the editing unit 13 selects the input character from the source code window 31 and the comment window 32 at present. Input is made at the character input cursor position on the selected window (step S6).

【0024】やがて、ソースプログラムの開発者がキー
ボード2を操作して、ファイルへの保存を指示する制御
文字と、その対象ファイルを指定する文字列を入力した
ものとする。
It is assumed that the developer of the source program eventually operates the keyboard 2 to input a control character for instructing saving in a file and a character string for specifying the target file.

【0025】入力文字判別部12は、キーボード2から
ファイルへの保存を指示する制御文字が入力された場
合、その旨をファイル入出力部14に通知し、その制御
文字に後続する入力文字列、即ち対象ファイルを指定す
る文字列を渡す。ここで、対象ファイルとしてソースコ
ードファイル4およびコメントファイル5が指定されて
いるものとすると、ファイル入出力部14は、その時点
までに編集部13によって作成・編集されているソース
コードをソースコードファイル4に、同じくコメントを
コメントファイル5に、それぞれ保存する。このソース
コードファイル4に保存されたソースコードおよびコメ
ントファイル5に保存されたコメントは、再度編集部1
3による編集対象となり得る。
When a control character for instructing the file to be saved is input from the keyboard 2, the input character discriminating unit 12 notifies the file input / output unit 14 of that fact, and the input character string following the control character is input. That is, a character string designating the target file is passed. Here, assuming that the source code file 4 and the comment file 5 are specified as the target files, the file input / output unit 14 uses the source code created and edited by the editing unit 13 up to that point as the source code file. 4 and similarly, the comment is stored in the comment file 5, respectively. The source code saved in the source code file 4 and the comment saved in the comment file 5 are edited again by the editing unit 1.
It can be an edit target according to 3.

【0026】[0026]

【発明の効果】以上詳述したようにこの発明によれば、
ソースコードを第1のウィンドウに表示すると共に、ソ
ースコードのコメントを第2のウィンドウに表示し、入
力手段からの文字入力内容に応じ、第1のウィンドウ上
でソースコードを作成・編集し、第2のウィンドウ上で
コメントを作成・編集する構成としたので、ソースコー
ドとコメントとを表示画面上で対比させながら、同時に
編集作業が行える
As described above in detail, according to the present invention,
The source code is displayed in the first window, the comment of the source code is displayed in the second window, and the source code is created / edited in the first window according to the content of the character input from the input means. Since the comment is created and edited on the window of No. 2, it is possible to edit at the same time while comparing the source code and the comment on the display screen.

【0027】また、この発明によれば、入力手段からの
入力文字が行方向のカーソル移動を示す制御文字である
場合には、第1および第2のウインドウの両ウインドウ
上で指定の行方向へ同一のカーソル移動またはスクロー
ルを行わせ、改行コードである場合には、第1および第
2のウインドウのうち現在選択されているウインドウ上
のカーソル位置の他、もう一方のウインドウ上の対応行
にも改行コードを入力する構成としたので、ソースコー
ドとコメントとを行毎に常に対応させた状態で編集作業
を行うことができる。以上の結果、ソフトウェア開発に
おけるソースコードの保守性が向上し、効率的にソース
プログラムを作成することができるようになる。
Further, according to the present invention, when the input character from the input means is a control character indicating the cursor movement in the line direction, it is moved in the designated line direction on both the first and second windows. When the same cursor movement or scroll is performed and the line feed code is used, the cursor position on the currently selected window of the first and second windows as well as the corresponding line on the other window is displayed. Since the line feed code is input, the editing work can be performed with the source code and the comment always corresponding to each line. As a result, the maintainability of the source code in software development is improved, and the source program can be efficiently created.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施例に係るソースコード・コメ
ント編集装置の構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a source code / comment editing device according to an embodiment of the present invention.

【図2】同実施例における動作を説明するためのフロー
チャート。
FIG. 2 is a flowchart for explaining the operation of the embodiment.

【符号の説明】[Explanation of symbols]

1…CPU、2…キーボード(入力手段)、3…表示装
置3、4…ソースコードファイル,5…コメントファイ
ル,11…表示部、12…入力文字判別部、13…編集
部,14…ファイル入出力部、31…ソースコードウイ
ンドウ(第1のウィンドウ)、32…コメントウインド
ウ(第2のウィンドウ)、111…ソースコード表示
部、112…コメント表示部。
1 ... CPU, 2 ... keyboard (input means), 3 ... display device 3, 4 ... source code file, 5 ... comment file, 11 ... display section, 12 ... input character discriminating section, 13 ... editing section, 14 ... file entry Output section, 31 ... Source code window (first window), 32 ... Comment window (second window), 111 ... Source code display section, 112 ... Comment display section.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ソースコードを第1のウィンドウに表示
すると共に、前記ソースコードのコメントを第2のウィ
ンドウに表示する表示手段と、 文字等を入力するための入力手段と、 この入力手段により入力された文字の種別を判別する入
力文字判別手段と、 この入力文字判別手段の判別結果に従って前記第1のウ
インドウ上で前記ソースコードを作成・編集し、前記第
2のウインドウ上で前記コメントを作成・編集するため
の編集手段と、 を具備することを特徴とするソースコード・コメント編
集装置。
1. A display means for displaying a source code in a first window and a comment for the source code in a second window, an input means for inputting characters and the like, and an input by this input means. An input character discriminating means for discriminating the type of the inputted character, and the source code is prepared and edited on the first window according to the discrimination result of the input character discriminating means, and the comment is prepared on the second window. A source code / comment editing device comprising: editing means for editing.
【請求項2】 前記編集手段は、前記入力文字判別手段
により、前記入力文字が行方向のカーソル移動を示す制
御文字であると判別された場合には、前記表示手段を制
御して前記第1および第2のウインドウの両ウインドウ
上で指定の行方向へ同一のカーソル移動またはスクロー
ルを行わせ、改行コードであると判別された場合には、
前記第1および第2のウインドウのうち現在選択されて
いるウインドウ上のカーソル位置の他、もう一方のウイ
ンドウ上の対応行にも前記改行コードを入力し、制御文
字でない通常の文字であると判別された場合には、前記
第1および第2のウインドウのうち現在選択されている
ウインドウ上のカーソル位置に前記入力文字を入力する
ことを特徴とする請求項1記載のソースコード・コメン
ト編集装置。
2. The editing means controls the display means to control the display means when the input character determining means determines that the input character is a control character indicating a cursor movement in a line direction. If the same cursor movement or scrolling is performed in the specified line direction on both the second window and the second window, and it is determined that the line feed code has occurred,
In addition to the cursor position on the currently selected window of the first and second windows, the line feed code is input to the corresponding line on the other window, and it is determined that the character is not a control character but a normal character. 2. The source code / comment editing device according to claim 1, wherein in the case where the input character is input, the input character is input to the cursor position on the currently selected window of the first and second windows.
【請求項3】 前記入力文字判別手段により、前記入力
文字が保存を示す制御文字であると判別された場合に、
前記編集手段により作成・編集されている前記ソースコ
ードおよびコメントをそれぞれ独立のファイルに出力
し、このファイルが指定された場合には、その内容を編
集対象として入力して前記編集手段に渡すファイル入出
力手段を更に備えたことを特徴とする請求項2記載のソ
ースコード・コメント編集装置。
3. When the input character determination means determines that the input character is a control character indicating storage,
The source code and the comment created and edited by the editing means are output to independent files, and when this file is specified, the contents are input as an edit target and passed to the editing means. 3. The source code / comment editing device according to claim 2, further comprising output means.
JP4274186A 1992-10-13 1992-10-13 Source code comment editor Pending JPH06124199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4274186A JPH06124199A (en) 1992-10-13 1992-10-13 Source code comment editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4274186A JPH06124199A (en) 1992-10-13 1992-10-13 Source code comment editor

Publications (1)

Publication Number Publication Date
JPH06124199A true JPH06124199A (en) 1994-05-06

Family

ID=17538240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4274186A Pending JPH06124199A (en) 1992-10-13 1992-10-13 Source code comment editor

Country Status (1)

Country Link
JP (1) JPH06124199A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018720A (en) * 2001-08-31 2003-03-06 (주) 소프트4소프트 Method for generating source code browser for software maintenance and system therefor
JP2008065509A (en) * 2006-09-06 2008-03-21 Yokogawa Electric Corp User program editing method and program for editing user program
JP2011008535A (en) * 2009-06-25 2011-01-13 Mitsubishi Electric Corp Source code management device
CN106293686A (en) * 2015-06-25 2017-01-04 阿里巴巴集团控股有限公司 The method and device of exhibiting pictures annotation in code text

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030018720A (en) * 2001-08-31 2003-03-06 (주) 소프트4소프트 Method for generating source code browser for software maintenance and system therefor
JP2008065509A (en) * 2006-09-06 2008-03-21 Yokogawa Electric Corp User program editing method and program for editing user program
JP2011008535A (en) * 2009-06-25 2011-01-13 Mitsubishi Electric Corp Source code management device
CN106293686A (en) * 2015-06-25 2017-01-04 阿里巴巴集团控股有限公司 The method and device of exhibiting pictures annotation in code text

Similar Documents

Publication Publication Date Title
JPH06124199A (en) Source code comment editor
JPH08137975A (en) Table processor
JP2875135B2 (en) Program device for programmable controller
JPH0793124A (en) Word processor and scrolling method
JP3083552B2 (en) Hierarchy editing processor
JP2513771B2 (en) Multimedia display system
JP3490779B2 (en) Screen control device by key input
JPH08335157A (en) Scroll controller and display device
JPH05173693A (en) Menu editing device
JP5028644B2 (en) Electronic computer and computer control program
JPS62263566A (en) Data eraser
JPS62206620A (en) Input method for character string under editing
JP2755833B2 (en) Ruled line creation device
JPH08335178A (en) Method and device for processing information
JPH0749758A (en) Window design and input device
JPH08123982A (en) Analytic data input and output device
JPH01200393A (en) Image controller
JPH04169926A (en) Graphic processor
JPH05324752A (en) Support device for generation of digital circuit simulation input pattern
JPH07121285A (en) Character string input system
JPH04309112A (en) Method and device for processing document
JPH05143545A (en) Instruction selection/execution processing system of plural instructions texts
JPH09114630A (en) Window moving method for document preparation device, recording medium for recording its computer program and document preparation device used for its execution
JPH11154150A (en) Pen input document editor and computer readable storage medium storing pen input document editing program
JPH02148255A (en) Editing device for documentation device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term