This is my first post. I have spent the last 6 hours trying to make UE understand the keywords used in Dark Basic Professional. Its a language for rapid development 3D applications. I like it - however the IDE it comes with sucks (its about 4 years old and all development on it has ceased). I really like UE - its just so friendly to work with. I have a full list of all the keywords, however they contain spaces. I researched on this forum but I fear that keywords have to be all "one word" keywords and this is something that IDM are looking into? On the off chance there is a genius here that can help me, I pose the following conundrum
For the most part, highlighting is ok - however, sometimes commands are not fully detected, for example, it does:
array insert at bottom MenuOptions()
when it should be:
array insert at bottom MenuOptions()
Basically, its detecting the short word before the longer word.
I have written a syntax highlighting in PHP that works on the principle of matching the longest word possible first - works a treat. Problem is:
1) UE seems to match in alphabetical order.
2) You can seem to specify that each line should be matched from begining to end in the word file, for example:
should only match an entire line, not just the word camera.
I understand you can delimit by characters other than space, but does this apply to the wordfile.txt too? Could I tell UE to delimit the keywords by "\n" only?
Cheers guys
For the most part, highlighting is ok - however, sometimes commands are not fully detected, for example, it does:
array insert at bottom MenuOptions()
when it should be:
array insert at bottom MenuOptions()
Basically, its detecting the short word before the longer word.
I have written a syntax highlighting in PHP that works on the principle of matching the longest word possible first - works a treat. Problem is:
1) UE seems to match in alphabetical order.
2) You can seem to specify that each line should be matched from begining to end in the word file, for example:
Code: Select all
CAMERA ANGLE X
CAMERA ANGLE Y
CAMERA ANGLE Z
CAMERA POSITION X
CAMERA POSITION Y
CAMERA POSITION Z
I understand you can delimit by characters other than space, but does this apply to the wordfile.txt too? Could I tell UE to delimit the keywords by "\n" only?
Cheers guys