NotePad + +: Add code lines and format invariant copy code

Source: Internet
Author: User

NotePad + + is a small and powerful installation package that can support many languages. Here is a brief description of the next two functions:

First, add the number of lines before the code:

1, with Notepad + + open a file, general Notepad + + will automatically recognize what the language of the file, the keyword will generally have a special color logo. If you can't tell the language, you can set it up automatically. Such as:

2, the left mouse button to select the number of lines to add code, or the mouse is positioned at the beginning of the code to add (default to the document plus), and then "edit"-"column editing":

Open the following dialog box and click OK after setting the following:

The software automatically completes the line additions. Such as:

3, if the situation occurs, it is because the code from the beginning of the input, you can add the code before adding, press the "tab" key, and then add just fine.

Second, how to copy the code, and make the code format unchanged, the keyword color is unchanged:

1. Select the part of the code you want to paste, then click on the "plugins" option in the menu bar, select "nppexport", and then select "copy HTML Toclipboard" as shown in:

Then paste into Word:

Ok!

Reference documents:

Http://bbs.elecfans.com/jishu_467739_1_1.html

NotePad + +: Add code lines and format invariant copy code

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.