HtmlMacros


Version: 2.2
Size:
7.95MB
Requirements:
Java Runtime Environment 6.0 or higher
Price:
Free
System:
Windows XP/2000/98
Rating:
4.7
License:
Freeware

Description - HtmlMacros



A generic framework for writing static macros in Java to generate elaborate boilerplate in HTML text files on the desktop without requiring any server side coding. It could also be used to expand macros in any text files.The basic idea is this. You embed magic comments in your HTML that look like something like this (with angle brackets shown here as [].[!-- macro Measure 20 cm --]Then you run htmlmacros.exe and it expands those comments toboilerplate that looks like this:[!-- macro JDisplay Measure 20 cm --][!-- generated --][span class="metric"]20 cm[/span][span class="imperial"](7.87 in)[/span][!-- /generated by Measure --]and renders colourised for your viewers like this:20 cm (7.87 in)Some of the 100 odd Macros that already exist include:Age Calculate Age of something in years/months/daysAllPosters affiliate link to AllPosters.comAmazon link to non-book product at AmazonArt link to art.com posterAudio link to audio fileBestBrowsers describe recommended browsersBook links to sell a book at various bookstoresCurrCon show currency in multiple CountriesDailySpecial random link to take a change page on the website changed daily.Degrees show both Fahrenheit/Celsius Dim metric/English width x heightDVD link to DVD stores FileSize insert the current size of a local fileFoot footer with google and public service ads.Head generic header, there are also many special purpose variants.Image display an png, jpg, gifRSS generate RSS feeds in HTML and XMLInclude include boilerplate, possibly containing embedded macrosJ2EE macro: link to Sun`s J2EE docsJDisplay display pretty colourise

HtmlMacros Span Class Text Files


More in Java & JavaScript-HtmlMacros

Macro Generated Span Class Stores Filesize Insert