find a new notepad "SynWrite" which has regular expression syntax highlight.

nicyk
2013-01-28
2013-01-30
  • nicyk

    nicyk - 2013-01-28

    some very personal syntaxs will display poor color.

    so I guess if the syntax highlight can support reg expression, everything will be ok.

    then I try to find some other editor. it seems the "SynWrite" has some similar with NP++. it seems support regular syntax highlight.

     
    Last edit: nicyk 2013-01-30
  • Loreia2

    Loreia2 - 2013-01-28

    Hi nicyk,

    thanks for letting me know about SynWrite. Very nice editor.
    I never heard of EControl Syntax Editor, but it is a very nice project.

    Just out of curiosity, what is it that you need that UDL doesn't support? I know you said RE support, but I wonder which keyword group do you need RE support for. Can you share some examples?

    BR,
    Loreia

     
  • nicyk

    nicyk - 2013-01-29

    Hi Loreia2,

    I just find this SynWrite support RE. It is complex. I dont understand it how to work. ^_^!!

    and I try to learn it. But it has no some my favor plugins, such as compare, source cookier,...

     
  • Loreia2

    Loreia2 - 2013-01-29

    Hi nicyk,

    I meant to say, what do you need in UDL to support your language.
    Can you show here your RE expressions, and tell foe which keyword type you use them for?

    BR,
    Loreia

     
  • nicyk

    nicyk - 2013-01-30

    Hi Loreia2,

    my language is like this:

    line1 *----------------------option--------------------------
    line2 .options tnom=25 post=binary $ probe

    both "" and "$" are comment symbol. the "" must be at the start of line, "$" should not be at the start. the "" is also used to mathmatics symbol, "+-/"

    when the start of a line is "*", this line is comment line.
    when one "$" is in a line, all words after this "$" should be marked as comment.

    thanks.

    for fold code:

    line1 all are subckt is operat
    line2 subckt xidly xidly xidly xidly xidly xidly.xian
    line3 id -2.000e-06 -2.633e-06 2.633e-06 0.000e+00 4.719e-14 -1.388e-10
    line4 cgd 2.429e-15 3.704e-14 3.988e-15 7.478e-15 7.276e-16 5.665e-15

    I want the fold style is from "subckt(line2)" to "cgd(line4)". but now when i fill "subckt" into startpoint of fold, the startpoint is line1, because one "subckt" is in line1.

    I know my language is very stange. but it is simple.

    BR,
    nicyk

     
  • Loreia2

    Loreia2 - 2013-01-30

    Hi nicyk,
    Problem 1 (position of line comments) is already solved. Please download Notepad++ 6.3 RC and test it yourself https://sourceforge.net/p/notepad-plus/discussion/331753/thread/5505a4eb/?limit=25#edcc
    You can now specify where line comments start:
    - anywhere
    - at beginning of line
    - anywhere but only if preceeded with white space
    Folding can be tweaked as needed too.
    One way to do it is to define Delimiter1 like this:
    Start: all
    End: ((EOL))
    Keep styling of Delimiter1 the same as default text. If you wish you can nest other keywords within Delimiter1.
    Now define "subckt" as folding point, and it should work as expected.
    BR,
    Loreia

     
  • nicyk

    nicyk - 2013-01-30

    Hi Loreia2,
    thanks very much. I try it.