Community
    • Login

    Compile in Pascal

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 9.7k 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.
    • Gus FernandezG Offline
      Gus Fernandez
      last edited by

      hello there:
      thanks for reading this. i am new in this of programming and in my classroom uses the free pascal or turbo pascal, but, how have problems with compatibility issues like win10 desn’t suport turbo pascal, etc i think in notepad++. my question starts here, how i compile and run the code just was write? thanks

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        This is not a coding help forum. So, assuming you knew that, and are asking how to help automate the process of compiling and running from within Notepad++…

        There are multiple ways to automate tasks like that. In the examples below, you will have to replace the “c:\path\to\pascal\compiler.exe” with the appropriate compiler and supply appropriate command-line arguments if it requires more than just the source code.

        1. Using Notepad++ Run > Run, type a command similar to

           cmd /k "c:\path\to\pascal\compiler.exe ^"$(FULL_CURRENT_PATH)^" && ^"$(CURRENT_DIRECTORY)\$(NAME_PART).exe^""
          

          You can hit the SAVE button to put it in the Macro menu, and optionally give it a keyboard shortcut

        2. Using the NppExec plugin, there are a few ways:

          1. Output to an “NppExec Console” sub-window inside the main Notepad++ window:

            Select Plugins > NppExec > Execute..., and use the command

             cd "$(CURRENT_DIRECTORY)"
             "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)"
             "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
            
          2. Output to an “NppExec Console” sub-window inside the main Notepad++ window, keeping a cmd.exe prompt active in that window:

            Select Plugins > NppExec > Execute..., and use the command

             cd "$(CURRENT_DIRECTORY)"
             "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)"
             cmd /k "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
            
          3. Output to a separate cmd.exe window:

            Select Plugins > NppExec > Execute..., and use the command

             cd "$(CURRENT_DIRECTORY)"
             npp_run cmd /k "c:\path\to\pascal\compiler.exe ^"$(FULL_CURRENT_PATH)^" && ^"$(CURRENT_DIRECTORY)\$(NAME_PART).exe^""
            
        3. There’s probably a way to do it with the PythonScript plugin as well

        1 Reply Last reply Reply Quote 0

        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