AutoHotKey.ahk userDefineLang.xml for NP++

AEN
2009-04-07
2013-02-03
  • AEN
    AEN
    2009-04-07

    7Apr2009
    Greetings.
    I now make this posting on behalf of all AHK/NP++ users.
    Please see-
    http://www.autohotkey.com/forum/topic12303-15.html
    It seems the current AHK userDefineLang.xml for NP++
    does not properly handle "an unterminating %".
    Other NP++ lang files (such as for .ada)
    properly handle instances of a single delimiter.
    Maybe someone has experience with lang files
    and could provide a solution, so the NP++.ahk
    userDefineLang.xml would properly handle
    instances of a single delimiter?
    The current entry is-
    <Keywords name="Delimiters">%00%00</Keywords>
    Any helpful replies/insights appreciated.
    Thank you.
    Regards,
    AEN
    Æ

     
    • cchris
      cchris
      2009-04-22

      I don't know if this is helpful, but....

      The lexer which handles all user defined languages has a fixed structure. It handles what has been assumed to be"reasonably features" of a language, sso that "reasonably featured" languages can be described fully using the UDL panel, and make people happy.

      However, there are plenty of languages around which depart more or less from this archetype. Highlighting will work moe or less for them.

      I don't know AHK, but if your % sign defines a segment extending up to the end of line, the only way currently available in the UDL framework is to treat it as a so called line comment.

      If this workaround is not satisfactory, you have to go the custom, aka external, lexer route. Given the mounting pressure, there has been some development to make writing such lexers easier. Please search for "external lexer" in the dorum for more details and useful links. Reading the source of a few Scintilla lexers, as well as PluginManager.cpp, should be inspirational too.

      CChris

       
    • AEN
      AEN
      2009-04-22

      22April2009
      Greetings.
      Still hoping someone could/would resolve
      this NP++.ahk userDefineLang.xml format issue.
      Any helpful replies/insights appreciated.
      Thank you.
      Regards,
      AEN
      Æ

       
  • AEN
    AEN
    2011-11-28

    28November2011
    Problem was solved.
    See»http://www.autohotkey.com/forum/topic73194.html
    There are download links there for my xml files for NP++/AHK.

     
  • cchris
    cchris
    2011-12-01

    Would you endorse putting your file on NpWiki++'s UDL files page?

    CChris

     
  • AEN
    AEN
    2011-12-01

    1December2011
    Greetings.
    Gladly … but the/my stylers.xml should accompany the UDL d/t Global settings.
    The/My langs.xml should accompany the stylers.xml d/t tweaks I've made to both …
    What about simply linking in the link to the AHK thread with my download links?

     
  • cchris
    cchris
    2011-12-11

    Ah, I see… Will do that.

    CChris

     
  • AEN
    AEN
    2012-11-11

    11November2012
    Greetings.
    NP++ 6.2 is giving me a problem.
    My AHK userDefineLang.xml file no longer formats .ahk files completely/correctly.
    I reverted to the 6.18 NP++.exe and to the 6.18 SciLexer.dll.
    I hope whatever is causing the problem will be fixed?!?

    24January2012
    Greetings.
    Any chance you might make a quick fix to the "tab order"
    of the popups with poor tab order?
    I posted an rtf file with the fixes I made via ResourceHacker here»
    https://sourceforge.net/tracker/index.php?func=detail&aid=3444099&group_id=95717&atid=612382
    I have to redo these fixes with every new NP++ release …

     
  • Loreia2
    Loreia2
    2012-11-13

    11November2012 Greetings. NP++ 6.2 is giving me a problem. My AHK userDefineLang.xml file no longer formats .ahk files completely/correctly. I reverted to the 6.18 NP++.exe and to the 6.18 SciLexer.dll. I hope whatever is causing the problem will be fixed?!?

    Hi,

    please be specific about what doesn't work.
    Try to use short code samples. Also, attach your userDefineLang.xml file.

    BR
    Loreia

     
    • AEN
      AEN
      2012-11-21

      21November2012
      Rearding the above/previous post by Loreia2 ...
      My "Armistice Day" post was (primarily) intended for CChris,
      who has previously posted in this thread and
      previously asked about posting my UDL file
      on NpWiki++'s UDL files page ...

      Maybe Loreia2 could/should read the previous postings?

      Seeing as how CC asked about posting my UDL file,
      it seems to me it might concern CC
      if changes to NP++ make a problem for my UDL file ...

      Anyone could see (some of) the differences
      by simply using my UDL file in 6.18 & then 6.2 ...

       
  • Loreia2
    Loreia2
    2012-11-23

    Anyone could see (some of) the differences
    by simply using my UDL file in 6.18 & then 6.2 ..

    Please post short and precise explanation as to what the problem is. I am likely to fix problems that users report in concise manner, and even more likely to give up on bug reports that are generic (no longer works) or where I have to investigate myself (download yourself and you will see).

    Thank you and best regards,
    Loreia

     
  • AEN
    AEN
    2013-02-03

    3February2013
    ... seems to me that NP++ breaking the UDL functionality is not progress ...
    does not enhance NP++ ...
    seems to me NP++ should want to restore this functionality ...
    Otherwise ...
    I guess I can live with no more updating of NP++ ...
    ... especially if updating is going to mean dealing with issues like this ...

     
  • Loreia2
    Loreia2
    2013-02-03

    Hi AEN,

    what exactly is point of your rant? I already asked you to be SPECIFIC as to what the problem is, and you are giving me feedback in form of childish rant.

    Let's make something clear.
    I have designed UDL 2 to be fully backwards compatible. If something is broken, please report a bug and it will be fixed in some future version.

    ... seems to me that NP++ breaking the UDL functionality is not progress ...
    does not enhance NP++ ...
    

    Absolutely childish and unhelpful reports like this one serve no purpose other than to vent out some frustration. Now that you have covered that part, maybe you can give me some actualy useful feedback.

    If you plan to answer with another "generic bitching and moaning", please don't even bother. Working on UDL is handfull even without answering to users unwiling to provide usefull feedback.

    Regards,
    Loreia