How to add comments to the unit dynamically?

Source: Internet
Author: User
How to add comments to the unit dynamically? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061225123529122.html
I want to write unit comments and procedure comments into something similar to a template, traverse the PAS file under the folder, and add comments automatically. How can I implement the comments mainly to improve the efficiency of the annotations.
For example:

Unit utltest

Interface

Uses
**,**,**
Type
Testclass = Class
Procedure testfunction ();

End;

Implements
////////////

//// Add the annotated template here
////////////////////
Function testclass. testfunction ();
Begin
***********************
End;
End.

Perform a row-by-row Analysis on. Pas.

--------------------------------------------------------------
ProgramIs like life.

If one row is analyzed, the efficiency must be relatively low.CodeLook, it's not a problem.

Think of a method that requires moving a lot of rows. I don't know if there is any simple method.

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.