» tagged pages
» logout
Emacs
Return to Emacs Community on LiveJournal

Elisp Lesson: Writing make-html-table

Tags Applied to this Entry

1 person has tagged this page:
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-html-table.html )
Username:
Password:
(or Cancel)