Difference between revisions of "Generating a Lithium TOC"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) (Created page with "'''Prerequisite''': Download this Perl script: http://duramecho.com/ComputerPrograms/HtmlHeadingsToTableOfContents/index.html '''Procedure''' # Copy / paste the HTML into a loc…") |
Rand Linden (talk | contribs) |
||
Line 6: | Line 6: | ||
#Add <html><body> ....</body></html> | #Add <html><body> ....</body></html> | ||
#Run script | #Run script | ||
:<pre>perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html></pre> | |||
#Copy paste results back into Lithium. | #Copy paste results back into Lithium. | ||
# Add TOC table wrapper code | # Add TOC table wrapper code |
Revision as of 09:50, 10 May 2011
Prerequisite: Download this Perl script: http://duramecho.com/ComputerPrograms/HtmlHeadingsToTableOfContents/index.html
Procedure
- Copy / paste the HTML into a local file.
- Add <html><body> ....</body></html>
- Run script
perl HtmlHeadingsToTableOfContents.pl <YourHtmlFile.html>
- Copy paste results back into Lithium.
- Add TOC table wrapper code
TOC wrapper code
<table id="toc" class="toc" summary="Contents"> <tbody> <tr> <td> <!-- Generated TOC here --> </td> </tr> </tbody> </table>