Compile in Pascal
-
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 -
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.
-
Using Notepad++
Run > Run, type a command similar tocmd /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
Macromenu, and optionally give it a keyboard shortcut -
Using the NppExec plugin, there are a few ways:
-
Output to an “NppExec Console” sub-window inside the main Notepad++ window:
Select
Plugins > NppExec > Execute..., and use the commandcd "$(CURRENT_DIRECTORY)" "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)" "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" -
Output to an “NppExec Console” sub-window inside the main Notepad++ window, keeping a
cmd.exeprompt active in that window:Select
Plugins > NppExec > Execute..., and use the commandcd "$(CURRENT_DIRECTORY)" "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)" cmd /k "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" -
Output to a separate
cmd.exewindow:Select
Plugins > NppExec > Execute..., and use the commandcd "$(CURRENT_DIRECTORY)" npp_run cmd /k "c:\path\to\pascal\compiler.exe ^"$(FULL_CURRENT_PATH)^" && ^"$(CURRENT_DIRECTORY)\$(NAME_PART).exe^""
-
-
There’s probably a way to do it with the PythonScript plugin as well
-
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