Coder Social home page Coder Social logo

Comments (3)

dizietsma avatar dizietsma commented on June 15, 2024 1

Thanks for the explanation and your raising it on the NP++ issues:)
In the meantime, I'm enjoying the plugin, especially the auto-detection of SkyrimSE or F4 scripts.

diziet

from npp-papyrus.

blu3mania avatar blu3mania commented on June 15, 2024

@dizietsma Yes, it requires lexer to recognize these configured keywords and assign "states" to them, which map to configured word styles in the XML. In theory, it seems this can be simply done by adding new keywords categories in the config and let lexer read and parse them. However, unfortunately it is not that simple. For some reason NPP can only support 9 word lists, i.e. instre1, instre2, type1 to 7. In this plugin, 8 of them are already defined so at most one can be used for user defined keywords, but I want to reserve it for potential future use.

I am not sure why NPP has such a limit. From its code comments it seems there is a defined constant that limits the # of keyword lists, and that constant used to be 8 (the numbering is zero based, thus giving 9). However, it was increased to 30 in 2012 but somehow the code is still hardcoded to only support 9 lists.

from npp-papyrus.

blu3mania avatar blu3mania commented on June 15, 2024

Dependency on NPP enhancement notepad-plus-plus/notepad-plus-plus#11330.

from npp-papyrus.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.