One way to enable syntax highlighting on the source code (PHP, C/C++, etc.) of your website is to convert the code into HTML and then paste the HTML into your web.
This video demonstrates such kind of conversion by GNU Emacs. It depends on a homemade Elisp package called faced-buf2htm.el to do the conversion. faced-buf2htm.el is an extremely simple package with no more than 200 lines of code. It works by retrieving text properties from the buffer, so make sure the buffer is in the correct major mode before you start the conversion. This makes the program to color your source code appropriately.
Because faced-buf2htm.el is so simple, it is definitely not a sophisticated one to do this kind of job. If your are looking for a better one, you may try Htmlize package which can be found in EmacsWiki http://www.emacswiki.org/emacs/Htmlize .
However, if you want to give it a try, faced-buf2htm.el can be downloaded from:
http://sites.google.com/site/justinlee5455/files/faced-buf2htm.el?attredirects=0
To convert a buffer: (1) load in faced-buf2htm.el (2) switch to any buffer you want to convert (3) be sure the buffer is in the correct mode (4) run the command `M-x faced-buf2htm'.
p.s. In order to highlight PHP code like this demo, you may need php-mode.el which can be found at http://www.emacswiki.org/emacs/PhpMode
video was made by gtk-recordMyDesktop under KDE 4
what kind of code is this?? i was wondering if there is any way to convert.. like a falling object code from myspace to an html???
DarkAshes27 1 year ago
what the bloody hell is this??
HotSexcGyal 2 years ago