tabtext2html

Hidemaru Macro which converts a tabbed text to a HTML table.

Archive


Usage

Save the macro source shown below to the directory where Hidemaru editor is installed.

Select [Macro] menu from Hidemaru


Source Code

	// Line Head --> <tr><td>
	replaceall "^\\f.*\\f", "<tr><td>\\1"   ,regular;

	// Line Tail --> </td></tr>
	replaceall "\\f.\\f$", "\\1</td></tr>" ,regular;

	// HTAB --> </td><td>
	replaceall "\t", "</td><td>" ,regular;

	// File Top  : <table border="1">
	gofiletop;
	insert "<table border=\"1\">";
	insertreturn;

	// File End  : </table>
	gofileend;
	insertreturn;
	insert "</table>";


Archive