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.