Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

New UserDefinedLanguage module

Loreia2
2011-07-30
2014-06-11
<< < 1 .. 23 24 25 26 > >> (Page 25 of 26)
  • Loreia2
    Loreia2
    2014-01-29

    Hi mzvarik,

    It doesn't allow to add a parsing to existing one, like HTML.

    no, UDL is a completely separate styler. It has no effect at all on existing built-in code parsers.

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-01-30

    I suggest to group that it was obvious

    Group
    Group

     
  • Loreia2
    Loreia2
    2014-01-30

    Hi AZJIO,

    thanks for your interesting proposal.

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-03-09

    _open(20, 40, 50)
    Numbers aren't highlighted here. It is necessary as in the "Operator 1"

     
  • Loreia2
    Loreia2
    2014-03-09

    Hi AZJIO,

    just deine , ( ) as Operator1 style, and numbers wil be highlighted.

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-03-10

    Thanks

    You can do regular expression? Using group or special operator (( ))
    For Example:
    (?x)\ [/?\w+?\ ]
    To capture the BBCode

     
    Last edit: AZJIO 2014-03-10
  • Loreia2
    Loreia2
    2014-03-10

    Hi AZJIO ,

    regex is not supported. I'd like to add that functionallity in next major revision (UDL 3.0). Up to then you will have to list all possible keywords manually.

    BR,
    Loreia

     
    Last edit: Loreia2 2014-03-10
  • xsxs
    xsxs
    2014-03-13

    First I really would appreciate that changes of a userdefined language are save immediately and not at close of npp - I lost all the changes at backup or if win7 crashes (~ 1 or 2 times a month)

    Second I would appreciate if the autocompletion as of the start of the (new) file would 'know' all the keywords of the actual language file (userdefined or standard) and not only after a keyword has been used the first time.

     
  • Loreia2
    Loreia2
    2014-03-13

    Hi xsxs,

    First I really would appreciate that changes of a userdefined language are save immediately and not at close of npp - I lost all the changes at backup or if win7 crashes (~ 1 or 2 times a month)

    Generally Win7 is quite stable if you have stable drivers installed. Such often crushes indicate a serious problem. You should look it up.
    It is hard to trigger saving to file automatically directly from the UDL because it would mean to save the file each time you type something. I guess I could add a save button, or to trigger saving when UDL dialog GUI is closed. I will think about it.

    Second I would appreciate if the autocompletion as of the start of the (new) file would 'know' all the keywords of the actual language file (userdefined or standard) and not only after a keyword has been used the first time.

    That is an excellent proposal. It definitely goes to TODO list!

    BR
    Loreia

     
    • xsxs
      xsxs
      2014-03-13

      1) A save button would be a very good solution!!
      2) Thank you! Now I am waiting for it ;)

       
  • AZJIO
    AZJIO
    2014-03-15

    xsxs
    You can restart Notepad++ and it will save all settings. This applies not only to userDefineLang.xml, but also to shortcuts.xml.

    Loreia2

    I could add a save button

    it is better to close the window let saves.

    Button "Create New ..." and "Save As ..." a little confusing. The button "Save As ..." allows greater functionality, including the functionality of the button "Create New".

     
    Last edit: AZJIO 2014-03-15
  • Loreia2
    Loreia2
    2014-03-16

    Hi AZJIO,

    I agree, I was thinking to rename it to "Copy as", there will also be a "Save" button that will do actual saving to XML file.

    Hi Jan,

    you are right, the only thing needed was to save lang_name.XML to APIs folder.

    Hi xsxs,

    both features are now implemented, they will be part of UDL 3.0

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-03-31

    If I use a black theme, it is necessary to set by default it in settings.

     
  • Loreia2
    Loreia2
    2014-03-31

    Hi AZJIO,

    If I use a black theme, it is necessary to set by default it in settings.

    What do you mean by this?

    Default style should follow theme colors. So, the best thing to do is to create one UDL for light, and one for dark background.

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-03-31

    I need to specify manually a background for each keyword
    To reduce sufferings, I open the XML file and I insert color of a background.
    It is heavy to set color approximately.

    Black

     
  • Loreia2
    Loreia2
    2014-04-01

    Hi AZJIO,

    that is painful, and it is only going to get worse in UDL 3.0 with 32 Keyword and Delimiter sets. I guess I could make other keyword types follow background setting of Default type.

    # after user changes default style, run for loop on all other styles
    for keywordX in allKeywords:
        if keywordX.bgColor == black:   # black is the default
            keywordX.bgColor = default.bgClack
    

    Would that be better?

    BR,
    Loreia

     
  • AZJIO
    AZJIO
    2014-04-01

    if keywordX.bgColor == black:

    Why to check?
    At once to take as a basis color by default.
    Not only color of a background, but also color of a font.
    All of the buttons (Styler) that cause the color selection dialog should initially use the color of the chosen theme.
    Settings->Style Configurator->"Global Styles : Default Style" - These values of color have to be used

     
  • Loreia2
    Loreia2
    2014-04-01

    Hi AZJIO,

    Why to check?
    At once to take as a basis color by default.

    That would reset any changes user might have done on keyword stylers. I don't want that. If user has set Keyword1 to have fg:blue and bg: yellow, then dialog shouldn't mess with Keyword1 on its own.

    But it makes sense to use current global default style as basis for new UDL language. I will implement that.

    BR,
    Loreia

     
  • miro
    miro
    2014-04-01

    Hi Loreia2,

    I'm want to use your UDL2.0 for "Cadence SKILL", I have the language file from the library
    how ever I would like to improve it to have similar behavior as the build in LISP (as SKILL is based on LISP) language. Problem is that I struggling with folding. I can not figure out how to set the folding to end at the right "end" bracket ).

    I hope you will help me or at least give me some link to study from.

    Regards,
    Miro

    EDIT:

    Here some code example

    procedure( SetMetalsVisible()
    leSetAllLayerValid( t )
    leSetEntryLayer( '("metal1" "drawing") )
    leSetAllLayerVisible( nil )
    foreach( laylsw list(
    ("metal1" "drawing")("metal2" "drawing")
    `("via1" "drawing")
    )
    leSetLayerVisible( laylsw t )
    leSetLayerSelectable( laylsw t )
    ) ;
    ); end procedure

    Is it possible to set the folding open as "procedure"? and make it stop on the right )?

     
    Last edit: miro 2014-04-01
  • Loreia2
    Loreia2
    2014-04-02

    Hi miro,

    UDL documentation is here: http://udl20.weebly.com/

    In this example you can define folding as Folding in code 2 style:
    Open: procedure
    Close: "end procedure" (don't forget quotes)

    Also define braces and semicolon as Operator1 type, and that should do the trick.

    BR,
    Loreia

     
  • miro
    miro
    2014-04-02

    Hi Loreia,

    Thanks for quick reply.

    I tried this (or similar) before, but I have problem that semicolon is Comment line Open. If I set the semicolon also for the Comment it doesn't work correctly (folding), if I remove semicolon from Comment then folding works. Any ideas?

    Regards,
    Miro

     
  • Loreia2
    Loreia2
    2014-04-02

    Hi miro,

    but I have problem that semicolon is Comment line Open.

    in that case define "end procedure" as Close keyword for Folding in comment type.

    This will work, but the downside is that you need to have a comment at the end of every procedure. In case you forget to add a comment, folding will break.

    BR,
    Loreia

     
  • miro
    miro
    2014-04-02

    Thanks a lot,

    Now it works.

     
  • miro
    miro
    2014-04-03

    Hi Loreia,

    Just for info - Do you plan for your UDL 3.0 support for such type of languages as LISP which use brackets for enclosing commands?

    Regards,
    Miro

     
<< < 1 .. 23 24 25 26 > >> (Page 25 of 26)