C Language Development Environment Based on notepad ++ and TCC

Source: Internet
Author: User
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)
  • Compiler

Download the TCC windows compressed package and decompress it to a directory, for example, "F: \ Software \ TCC";

  • Syntax highlighting
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.
  • Command Line output
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;
  • Define menu items
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;
  • Compile and run
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.