Jump to content

TOC Gen 0.1 - Table of Contents Creator


xwinterx
 Share

Recommended Posts

Okies... This is a pretty simple script. It will generate a Table of Contents for your scripts to be appended at the end of your code. Highly useful for larger scripts. All it takes is a simple "key" that you can use for the TOC Entries.

Sample Code:

;~>Just a Test
MsgBox(4096,"Test", "Test" & @CRLF _
    & "some more!")
;~>Done!!!!

Sample TOC:

; Copy and Paste the Region below at the end of your script.
 
#region - Table of Contents for: test.au3
;
; Line        Content
;
; 1         - Just a Test
; 4         - Done!!!!
;
#endregion - Generated by TOC Gen v0.1

The key is the ";~>" that tells TOC Gen where your Content Entries are. Once again... a stupidly simple script from me for me and now for you. Enjoy!

To Use:

1. Run the script

2. Browse to the au3 file to process for the TOC

3. Click "double space TOC" to double space the TOC

4. Click Process button

5. Paste the TOC to the END of your script.

To Do:

- Give option of changing line numbers to compensate for pasting TOC at start of code

- Other stupid things I am sure

TOC_Gen_01.au3

Link to comment
Share on other sites

Good idea. You might want to to remove leading whitespace from each line with StringStripWS() because a line starting with tab then ;~>NAME will have ">NAME" in the generated TOC

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Link to comment
Share on other sites

Good idea. You might want to to remove leading whitespace from each line with StringStripWS() because a line starting with tab then ;~>NAME will have ">NAME" in the generated TOC

Doh! see... told you I'd need to do something that I was stupid enough not to think of.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...