|
Post by garbuya on May 18, 2017 11:55:30 GMT -5
I propose to create two new line commands:
1. Shrink a block of code into one line
For example, If/End block will be shrinked into one line like IF A = B ----------- <000025> ------
This is different from the eXcluding lines and will be very useful when you are analyzing the logic of a complicated code. By shrinking blocks of code you can come to something like this, which is very easy to read and understand
IF A = B ----------- <000025> ------
Function A1 ----------- <00012> ------
Procedure P1 ----------- <00032> ------
SELECT ----------- <00016> ------ IF C = D ----------- <000026> ------
2. Exclude non-key words and leave visible only lines with keywords
This will allow you to compact your code to something like this: IF A = B ----------- <000025> ------
PERFORM UNTIL ----------- <000026> ------
CASE ----------- <000026> ------
-------------------- END CASE; ---------------- END PERFORM;
END IF;
Since block delimiters and keywords are different across programming languages another type of parameter can be added to the color settings file For example: BLOCK "IF" "END IF" BLOCK "SELECT" ";" BLOCK "CASE TRUE" "END CASE"
BLOCK "DO WHILE" "END LOOP"
KEY "IF" KEY "END" KEY "END IF"
KEY "DO WHILE"
Block delimiters or keywords could be more than one word.
Is this possible?
|
|