Does anyone know why keywords are being highlighted in non keywords? | UDL
-
For reference, this is a UDL and the programming language is ABAP.
Does anyone know why keywords are being highlighted in non keywords? Can someone please explain?
For example, the word is idoc_word and the “do” gets highlighted.
In the folder & default tab, if I keep it in folding code style one the keyword would be highlighted in non keyword. But if I put it in folding code style two, the keyword does not get highlighted in the non key word. So the do won’t be highlighted in idoc_word.
-
@cll142 said in Does anyone know why keywords are being highlighted in non keywords? | UDL:
Does anyone know why keywords are being highlighted in non keywords? Can someone please explain?
Some of the keywords require spaces around them, depending on which box you put the keywords into.
For example, the word is idoc_word and the “do” gets highlighted.
In the folder & default tab, if I keep it in folding code style one the keyword would be highlighted in non keyword. But if I put it in folding code style two, the keyword does not get highlighted in the non key word. So the do won’t be highlighted in idoc_word.
In Folding in code 1 style, the keywords or symbols do not need spaces around them, so if you have
do
in the Folding in code 1 style then it will highlight thedo
inidoc_word
. In Folding in code 2 style, the keywords or symbols require spaces around them, so thedo
in Folding in code 2 style will not highlight thedo
inidoc_word
. If you are matching words (likeif
/elsif
/else
orwhile
/wend
), I find it best to use Folding in code 2; if you are using symbols (like{
/}
), it’s usually okay to use Folkding in code 1. -
@PeterJones Thanks for helping me get a better understanding of how the different folding style works and why keywords were being highlighted in non keywords.