HiLiteMe.com updated
Following from here, I'm proud to announce an update to HiLiteMe.com. With two custom renderers for Text_Highlighter, the service now offers you:
- BB code for your source, so you can post beautiful code to bulletin boards and others that use BB code for formatting
- simple HTML code - the formatting is using only the tags b, i and u, this is for devices such as iPod that can understand only tiny amount of HTML code. So you highlight some code and take it on the road, sweet.
In addition to that there is Simple HTML preview, CSS styles that are used for the "rich" HTML highlighting and also the code for the rich HTML formatting, so no need to view->source->copy
Other additions - tabsize setting (how many spaces for a tab, if you paste code with tabs in it) and line numbers setting (yes/no) to specify whether you want lines to be numbered in your code.
Note on the BB code highlighting - I tested on:
- vBulletin - works beautifully and
- phpBB - the current out-of-the-box version will not work, becuase it's not allowing [color] BB tags inside [code] tags. Buuut, there is a MOD to enable this
This entry was posted on Saturday, September 9th, 2006 and is filed under PEAR, phpBB. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Get notification for future posts: follow me on Twitter or subscribe to my RSS feed

September 11th, 2006 at 7:44 am
PHPied.com: HiLiteMe.com updated…
…
September 20th, 2006 at 7:35 am
[...] Just finished and eager to share - I added a new syntax definition to the Text_Highlighter PEAR package (see also here). It’s for highlighting code written in the SAP’s own ABAP programming language. [...]
June 18th, 2007 at 5:48 am
Can ya give me the source code of thiz thourgh email hlong290494 [at] yahoo.com ?
September 11th, 2007 at 7:44 pm
Hey dude you jneed to have visual basic!!!!!!!! how can you leave that out?! and c#?
September 12th, 2007 at 4:29 pm
Hi Anon,
This is using the PEAR package Text_Highlighter, it’s open source so I hope someone will contribute definition files for more languages.
February 5th, 2008 at 9:24 am
Hey Stoyan,
I like what you have done here - especially including ABAP!
Kind regards,
Nigel
February 18th, 2008 at 10:02 am
I found a bug…
your text_highlighter won’t work well with the code below: (lang = cpp)
the hex numbers will be divided into two parts: 0 and x7fffffff
/***********************************************************************
Author: WHU_GCC
Created Time: 2008-1-23 19:34:33
File Name: 1444.cpp
Description:
***********************************************************************/
#include
using namespace std;
#define out(x) (cout
February 18th, 2008 at 10:10 am
I found a bug…
your text_highlighter won’t work well with the code below: (lang = cpp)
the hex numbers will be divided into two parts: 0 and x7fffffff
/***********************************************************************
Author: WHU_GCC
Created Time: 2008-1-23 19:34:33
File Name: 1444.cpp
Description:
***********************************************************************/
#include
using namespace std;
typedef long long int64;
const int maxint = 0×7fffffff;
const int64 maxint64 = 0×7FFFFFFFFFFFFFFFLL;
March 23rd, 2008 at 12:54 pm
[...] Text_Highlighter is one of my favourite PEAR packages, seems like I’m addicted to highlighting source code. After adding BB code and simple HTML renderers and an ABAP code syntax definition, today I played with adding a JSON renderer. Useful in case you want to get highlighted source code in your new shiny AJAX app. [...]
November 9th, 2008 at 1:07 pm
Nice… you should however use htmlspecialchars() when displaying result in textarea, because if I use in code, than… we all know what will happen.
November 9th, 2008 at 1:25 pm
Very true, Boštjan, thanks!