Community
    • Login

    Notepad++ plugin to display message box if a particular word being written is in lowercase

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    6 Posts 3 Posters 3.4k Views
    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.
    • poonam joshiP
      poonam joshi
      last edited by poonam joshi

      I downloaded the c# plugin template to develop a plugin for notepad++.
      But unable to understand the code in it.
      My requirement is to develop plugin which when selected in notepad++ would check the word, if it is in uppercase or not, at run time. If not it should display a message box as warning.
      Can anybody please help me with this?

      1 Reply Last reply Reply Quote 0
      • chcgC
        chcg
        last edited by

        Maybe you want to checkout the mentioned project at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net as startingpoint. Maybe https://github.com/zkirkland/FirstUpper, also one file is currently missing in the github repo.

        1 Reply Last reply Reply Quote 0
        • chcgC
          chcg
          last edited by

          At which stage are you hanging? Creating a own project from the template? Building a created project, …?

          1 Reply Last reply Reply Quote 0
          • poonam joshiP
            poonam joshi
            last edited by

            Thanks for the reply.
            I am stuck on how to read current word from current file in notepad++ and check the word.

            Scott SumnerS 1 Reply Last reply Reply Quote 0
            • Scott SumnerS
              Scott Sumner @poonam joshi
              last edited by

              @poonam-joshi

              Just a suggestion but it might be easier to “script” your desired functionality with Pythonscript or Luascript that to create it as a full-blown plugin. Or at least prototype it as a script first and see if it functions logically the way you hope…

              What you want to do isn’t all that clear, but from what’s there it seems like it could be scripted in some small amount of lines of code. Perhaps describe it in more detail and further advice can be offered about which way to take it…

              1 Reply Last reply Reply Quote 0
              • poonam joshiP
                poonam joshi
                last edited by

                Thanks for the reply
                Problem Statement:
                In my project, I do shell scripting and use notepad++ to write the script. I need to follow some rules while writing the code. Thus, I want to develop a plugin (which works like a code reviewer) which when selected in notepad++, could automatically check the code(script) at the run time while I am writing the code(script) in notepad++ and display an error message if any rule is not followed.
                For e.g. SELECT word should always be in upper case. So whenever I write SELECT word in small case in notepad++ then an error message should popup.
                Can you please suggest how should I go for it using C# template for plugin development?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors