Syntax Highlighting



  • I create syntax highlighting. It is necessary to comment consisted of a few lines and begin with the string
    rem — BeginComp: Armor —
    and ends with the line
    rem — EndComp —

    But the code looks like this:

    rem — BeginComp: Armor —
    ObjectTemplate.createComponent Armor
    ObjectTemplate.armor.maxHitPoints 1000
    rem --------------------------
    ObjectTemplate.createComponent Radio
    ObjectTemplate.Radio.spottedMessage air_spotted
    rem — EndComp —

    Due to space after the “rem” comment line ends in “rem --------------------------” rather than "rem — EndComp - - "
    Can I take into account the gap?
    I apologize for my English .


Log in to reply