Notepad ++: 5.8.3 Green Edition; Official Website: http://notepad-plus-plus.org/notepad?#nppexec plug-in; tcc:tiny C compiler (Official Website: http://bellard.org/tcc)
Download the TCC windows compressed package and decompress it to a directory, for example, "F: \ Software \ TCC";
Notepad ++ has built-in syntax highlighting for the C language. If there is no "C" language item under the "language" menu, under "Settings"> "Preferences"> "language", place "c" in the "enable items" list.
Install nppexec: Download nppexec and decompress it to the plugins folder in the NPP installation directory. For example, my NPP green version path is F: \ Software \ notepad ++ 583, the directory structure is F: \ Software \ notepad ++ 583 \ plugins \ nppexec. DLL and F: \ Software \ notepad ++ 583 \ plugins \ nppexec (Below are a few. files in the doc directory of the compressed package are stored under F: \ Software \ notepad ++ 583 \ plugins \ doc. After starting NPP, you can see the "plug-in-> nppexec" menu. "plug-in-> nppexec-> show console dialog" opens the command output window, you can use the plug-in> nppexec-> change console font to modify the font and font size of the output window ;;
- Define the running script
[Plug-in-> nppexec-> execute] Open the execute window and enter npp_save "F: \ Software \ TCC \ tcc.exe" "$ (full_current_path) "-run point save this script as" Run c0000000000's first-line script saved file. The second-line script uses the-run parameter of tcc.exe to compile, connect, and run the script at one time;
Choose "Run C" from plug-in> nppexec> advanced options, and then select "place to the macro submenu "; bind the shortcut key macros or commandins commands under "Set-> Manage shortcut key" to "run C" and set a shortcut key for it;
Open the hello. c file in NPP. Its content is: # include <stdio. h> main () {printf ("Hello, world !!! \ N ");} [macro-> run c] or use the shortcut key set earlier to start the run C script. The program output is displayed in the console window.