def set_indicator_attributes(indicator_number, fore=(0, 0, 0)):
     editor1.indicSetFore(indicator_number, fore)
     editor1.indicSetStyle(indicator_number, INDICATORSTYLE.TEXTFORE)
     editor2.indicSetFore(indicator_number, fore)
     editor2.indicSetStyle(indicator_number, INDICATORSTYLE.TEXTFORE)
     return indicator_number
示例#2
0
COLOR_NO_MATCHES_FOUND    = (255,120,0)
COLOR_REGEX_TESTER_STATUS = (0,255,0)
COMMENT_CHAR              = '#'
INFORM_ABOUT_NO_MATCHES   = True
IGNORE_0_LENGTH_MATCHES   = True
# ---------------------------- </CONFIGURATION AREA> -----------------------------

_g = globals()
REGEX_TESTER_IS_RUNNING = _g.get('REGEX_TESTER_IS_RUNNING', False)
REGEX_TESTER_INPUT_TAB = _g.get('REGEX_TESTER_INPUT_TAB', 0)
COLORED_DOCS_LIST = _g.get('COLORED_DOCS_LIST', [])

# --------------------------------------------------------------------------------

editor1.indicSetStyle(8,INDICATORSTYLE.FULLBOX)
editor1.indicSetFore(8,COLOR_MAIN_MATCH)
editor1.indicSetAlpha(8,85)
editor1.indicSetOutlineAlpha(8,85)
editor1.indicSetUnder(8,True)

editor1.indicSetStyle(9,INDICATORSTYLE.ROUNDBOX)
editor1.indicSetFore(9,COLOR_ODD_MATCH)
editor1.indicSetAlpha(9,50)
editor1.indicSetOutlineAlpha(9,255)
editor1.indicSetUnder(9,True)

editor1.indicSetStyle(10,INDICATORSTYLE.ROUNDBOX)
editor1.indicSetFore(10,COLOR_EVEN_MATCH)
editor1.indicSetAlpha(10,50)
editor1.indicSetOutlineAlpha(10,255)
editor1.indicSetUnder(10,True)
示例#3
0
COLOR_NO_MATCHES_FOUND    = (255,120,0)
COLOR_REGEX_TESTER_STATUS = (0,255,0)
COMMENT_CHAR              = '#'
INFORM_ABOUT_NO_MATCHES   = True
IGNORE_0_LENGTH_MATCHES   = True
# ---------------------------- </CONFIGURATION AREA> -----------------------------

_g = globals()
REGEX_TESTER_IS_RUNNING = _g.get('REGEX_TESTER_IS_RUNNING', False)
REGEX_TESTER_INPUT_TAB = _g.get('REGEX_TESTER_INPUT_TAB', 0)
COLORED_DOCS_LIST = _g.get('COLORED_DOCS_LIST', [])

# --------------------------------------------------------------------------------

editor1.indicSetStyle(8,INDICATORSTYLE.FULLBOX)
editor1.indicSetFore(8,COLOR_MAIN_MATCH)
editor1.indicSetAlpha(8,85)
editor1.indicSetOutlineAlpha(8,85)
editor1.indicSetUnder(8,True)

editor1.indicSetStyle(9,INDICATORSTYLE.ROUNDBOX)
editor1.indicSetFore(9,COLOR_ODD_MATCH)
editor1.indicSetAlpha(9,50)
editor1.indicSetOutlineAlpha(9,255)
editor1.indicSetUnder(9,True)

editor1.indicSetStyle(10,INDICATORSTYLE.ROUNDBOX)
editor1.indicSetFore(10,COLOR_EVEN_MATCH)
editor1.indicSetAlpha(10,50)
editor1.indicSetOutlineAlpha(10,255)
editor1.indicSetUnder(10,True)
 def set_indicator_attributes(indicator_number, fore=(0,0,0)):
     editor1.indicSetFore(indicator_number, fore)
     editor1.indicSetStyle(indicator_number, INDICATORSTYLE.TEXTFORE)
     editor2.indicSetFore(indicator_number, fore)
     editor2.indicSetStyle(indicator_number, INDICATORSTYLE.TEXTFORE)
     return indicator_number