| xah lee ( @ 2008-04-28 20:29:00 |
Elisp Lesson: Writing make-html-table
Elisp Lesson: Writing make-html-table
Xah Lee, 2008-04
This page shows a example of writing a emacs lisp function that turns the current block of text into a HTML table. If you don't know elisp, first take a look at Emacs Lisp Basics.
The Problem
I want to write a function, such that, when called, the current block of text the cursor is on, becomes a HTML table. Suppose the block of text is this:
after, pressing a button, it becomes html table.
(raw code contains too many html code that screws up livejournal, and lj doesn't have a raw mode. Full text at http://xahlee.org/emacs/elisp_make-h tml-table.html )
Elisp Lesson: Writing make-html-table
Xah Lee, 2008-04
This page shows a example of writing a emacs lisp function that turns the current block of text into a HTML table. If you don't know elisp, first take a look at Emacs Lisp Basics.
The Problem
I want to write a function, such that, when called, the current block of text the cursor is on, becomes a HTML table. Suppose the block of text is this:
a b c 1 2 3 this and that
after, pressing a button, it becomes html table.
(raw code contains too many html code that screws up livejournal, and lj doesn't have a raw mode. Full text at http://xahlee.org/emacs/elisp_make-h