End of the line in the Operators - Separator № - Closure

dtopenya
2014-02-27
2014-03-07
  • dtopenya

    dtopenya - 2014-02-27

    Hello
    I made a selection of the text quoted by Operators - Separator number 1:
    Opening: "'
    Closure: "'

    If the quote is found in the regular expression, then selects all the text up to the next quote or the end of the page, if nothing is found.

    Can I separators (eg, Closure) indicate the end of the line (top of the line, etc.) using special characters (\ n - does not work)?

     
    Last edit: dtopenya 2014-02-27
  • cchris

    cchris - 2014-03-01

    Use ^ for start of line and $ for end of line.
    You can find information on regular expression special characters at https://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Regular_Expressions and following the links on that page.
    Unless I completely misunderstood what your problem is, which could happen.

    CChris

     
  • dtopenya

    dtopenya - 2014-03-03

    Opening: " '
    Closure: " ' ((EOL))

    Still need to finish the comment characters " '

     
  • Loreia2

    Loreia2 - 2014-03-03

    Hi dtopenya,

    if you define it like this:

    Opening: " '
    Closure: " ' ((EOL))

    then ((EOL)) has no effect.
    If you wish to close strings by either quote or EOL, do it like this:

    Opening: " '
    Closure: ((" EOL)) ((' EOL))

    Is that what you want?

    BR,
    Loreia

     
  • AZJIO

    AZJIO - 2014-03-03

    The characters were interchangeable

    Opening: ((" '))
    Closure: ((EOL " '))

     
    Last edit: AZJIO 2014-03-03
  • dtopenya

    dtopenya - 2014-03-03

    This is what I need.
    Thank you very much.

     
  • dtopenya

    dtopenya - 2014-03-04

    EOL - end of line.
    And as indicated by the start line?
    It is necessary to make the backlight comments only if # is at the beginning of the line.

     
  • Loreia2

    Loreia2 - 2014-03-04

    Hi dtopenya ,

    there is no indicator for start of line.
    If you wish to limit line comments to start at the beginning of line, there is a corresponding option above line comments definition.

    BR,
    Loreia

     
  • dtopenya

    dtopenya - 2014-03-05

    I tried to make the backlight block comments, but the line was painted only in commenting on the current and the next line, and the block delimiter coloring works immediately.

     
  • Loreia2

    Loreia2 - 2014-03-05

    Can you share your userDefine.xml file and a code sample too.

    BR,
    Loreia

     
  • dtopenya

    dtopenya - 2014-03-06

    [code]# sdsdsdssdds
    sdsdsds # dssdsds[/code]

     

    Related

    Code: code


    Last edit: dtopenya 2014-03-06
    Attachments
  • Loreia2

    Loreia2 - 2014-03-06

    Hi dtopenya ,

    you've defined a delimiter that starts with # and ends at the end of line.
    And this works on your code sample as expected?

    Can you explain what is wrong?

    BR,
    Loreia

     
  • dtopenya

    dtopenya - 2014-03-07

    The # must be painted before the end of the line only at the beginning of the line.
    If the backlight through the block comments, highlighting the first line only works when commenting on the second, etc.

    Lights through the separator works immediately, but excluding the start line.

    If you could specify the beginning of the line in the separator, then the problem would be solved.

     
  • Loreia2

    Loreia2 - 2014-03-07

    Hi dtopenya ,

    try to define # as start of line comments (you can delete it from the list of delimiters), and select to start line comments only at beginning of line.

    If you could specify the beginning of the line in the separator, then the problem would be solved.

    You are probably talking about delimiters. This feature will be available in UDL3.0

    BR,
    Loreia

     
  • dtopenya

    dtopenya - 2014-03-07

    Tried again to remove the backlight separators and leave only block comments only from the beginning of the line.
    As a result, there is no backlight, if at the beginning of the line has a tab.

    Commented out line 3 in a row, but none is highlighted.
    Commented out the line before the previous - all 4 color in the desired color.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks