Comment char is set in the ini:
[Settings]
commentchar=!
Moderator: Neosoft Support
I want to make a program that the user can create a regular expression to plug hpwControl.It is mostly difficult to guess what you want.
Code: Select all
SetVar "[TextForRegex]" "[#91]RegExKeywords[#93][#13][#10][Regex_Text]=1,0,1,0,-1,16711680,0,0,"
hpwPlusMemoLoadCfg "TextForRegex" "[TextForRegex]"
I load variable, not a file. I do not have these sections. Loading onlyComment char is set in the ini:
Code: Select all
SetVar "[TextForRegex]" "[#91]RegExKeywords[#93][#13][#10][Regex_Text]=1,0,1,0,-1,16711680,0,0,"
hpwPlusMemoLoadCfg "TextForRegex" "[TextForRegex]"
Code: Select all
SetVar "[TextForRegex]" "[#91]RegExKeywords[#93][#13][#10][Regex_Text]=1,0,1,0,-1,16711680,0,0,[#13][#10][#91]Settings[#93][#13][#10]commentchar=!"
hpwPlusMemoLoadCfg "TextForRegex" "[TextForRegex]"
Supported. I posted above example. Download and see. There's only the main code.First i have to check if loading from variable is supported in hpwPlusMemoLoadCfg.
I've tried. If the symbol is there, there are several problems. It is certainly possible to get around and check the existence of a symbol in the text, and to substitute the one which is not.So why not add the commentchar to your ini-stream:
Not ready made.Is there a TSQL or SQL file for syntax highlighting?
Code: Select all
[RegExKeywords]
^'.*'$=0,0,1,0,-1,255,0,0,
Code: Select all
[Sections]
'|'=1,0,3,0,-1,16711680,3,0,0,
Awesome, thanks for your help!HPW wrote:Seems I make a mistake:
I tested in paralel a StartStopKey and this seems to do it:So not the regex.Code: Select all
[Sections] '|'=1,0,3,0,-1,16711680,3,0,0,
Regards
Code: Select all
hpwPlusMemoSetVar "[RPlusMemo1_ContextAction]" "If [#34][#91]RPlusMemo1_ContextNum[#93][#34] [#34]=[#34] [#34]10[#34][#13][#10] AlertBox [#34]ContextAlert[#34] [#34]Context: [#91]RPlusMemo1_ContextNum[#93] = [#91]RPlusMemo1_ContextStr[#93][#34][#13][#10]Endif"