SENDS THE COMMANDS TO THE COMMENTS OF THE OBJECTS SYNEDIT
ACTION
The command SYNEDIT_TARGET_IS_COMMENT sends the following commands FONT_COLOR, FONT_BOLD, FONT_BOLD_OFF, FONT_ITALIC, FONT_ITALIC_OFF, FONT_STRIKE, FONT_STRIKE_OFF, FONT_UNDERLINE, FONT_UNDERLINE_OFF to the comments of the objects SYNEDIT.
SYNTAX:
SYNEDIT_TARGET_IS_COMMENT
USE ERROR EXAMPLE
dim i%,posit,c
label target
synedit 1:full_space 1
item_add 1,"print 123456"
item_add 1,"2D_CIRCLE 10,20,30"
item_add 1,"' this is a comment"
item_add 1,"print "+chr$(34)+"this is a string"+chr$(34)
for i%=0 to 12:gosub target:wait 1000:next i%
end
target:
' keywords
if c=0 then synedit_target_is_keyword:font_color 1,255,0,0
if c=1 then font_italic 1
if c=2 then font_bold 1
if c=3 then font_bold_off 1
if c=4 then font_italic_off 1
' strings
if c=5 then synedit_target_is_string:font_color 1,0,255,0
if c=6 then font_italic 1
if c=7 then font_underline 1
' comments
if c=8 then synedit_target_is_comment:font_color 1,200,200,200
if c=9 then font_strike 1
' gutter
if c=10 then synedit_target_is_gutter:font_size 1,16:font_color 1,0,255,0
if c=11 then hide 1
if c=12 then synedit_target_is_object:font_size 1,16
c=c+1
return
SYNEDIT_TARGET_IS_COMMENT
SYNEDIT_TARGET_IS_COMMENT
SEE ALSO
SYNEDIT
SYNEDIT_TARGET_IS_GUTTER
SYNEDIT_TARGET_IS_KEYWORD
SYNEDIT_TARGET_IS_OBJECT
SYNEDIT_TARGET_IS_STRING