Community
    • Login

    [New plugin] Smart Math

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 606 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Carlos SánchezC Offline
      Carlos Sánchez
      last edited by

      Hi, I’m new to the Notepad++ community.
      I’d like to share a plugin with you that I made not long ago.

      Smart Math
      Real-time mathematical evaluation plugin for Notepad++ using EOL annotations. Supports variables, percentages, and persistent tab settings. Written in FreeBASIC.

      I think it’s pretty simple but also quite useful :)

      It would be great if the plugin showed up in the plugins manager list, but I’m a bit lazy and haven’t got a clue, so I’m just going to share it here.

      GitHub repository: https://github.com/c-sanchez/npp-smart-math/
      Thread on the FreeBASIC forum: https://www.freebasic.net/forum/viewtopic.php?t=33519

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Offline
        PeterJones @Carlos Sánchez
        last edited by

        @Carlos-Sánchez said in [New plugin] Smart Math:

        I’m a bit lazy and haven’t got a clue

        I can’t solve the first part, but for the clue:

        • it’s just a PR to the nppPluginList project. Since you’re working in GitHub already, I assume you know how to do the PR
        • fork the nppPluginList repo, create your own branch
        • in that branch, edit pl.x64.json to link to the 64-bit version, and pl.x86.json to link to the 32-bit version
        • the id required in the JSON is just the SHA256 hash, which GitHub provides for you:
          fd4a838f-9724-477d-b755-24836141dc88-image.png
        • once you have edited both files in your branch, submit the PR from that branch
        Vitalii DovganV 1 Reply Last reply Reply Quote 1
        • Vitalii DovganV Online
          Vitalii Dovgan @PeterJones
          last edited by Vitalii Dovgan

          Believe or not, I’m starting to work on a tiny update to SmartMath to eventually have all these features:

          https://github.com/c-sanchez/AkelPad-Smart-Math/blob/main/USAGE_AND_SYNTAX.md

          The “MathParser.bas” has already been imported, as well as “MathParserRawResult.bas” that allows exact integers and arrays in the calculation results.
          The latest changes are here:
          https://github.com/d0vgan/npp-smart-math/tree/feature/powerful-calc

          It’s a work-in-progress since AkelPad-Smart-Math is so far ahead.
          But the updated “MathParser.bas” is already here, so npp-smart-math is already expected to support all the math expressions and calculations as AkelPad-Smart-Math does.

          I don’t think I’ll include all the unit tests from AkelPad-Smart-Math. To be honest, it would make perfect sense to have the “MathParser.bas”, “MathParserRawResult.bas” and maybe the Results Formatter as a separate project in git, and then both npp-smart-math and AkelPad-Smart-Math will reuse that as e.g. a git submodule.
          But it’s not an intermediate question - it’s rather a question for the future, and I hope I will not become “liberated” in that future (referring to the “liberation” of e.g. Bakhmut, Maryinka, Popasna, Volnovakha, Soledar, Vovchansk, Chasiv Yar and other cities).

          Another interesting topic is syntax highlighting. It was easy to do in AkelPad by means of its Coder plugin that allows to enable syntax highlighting programmatically for a given file:
          https://github.com/c-sanchez/AkelPad-Smart-Math/blob/main/AkelFiles/Plugs/Coder/smartmath.coder
          I am not sure if something similar can be achieved in Notepad++.

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors