Addon: pb2html

Working on new editor enhancements?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

I've written a small addon tool for saving your PB sources as HTML using CSS to provide the syntax highlighting. I posted it to the resources site earlier, but if anyone desparately wants a copy they can mail me.

Thanks go to Danilo and Beriko (although I ended up not using the RTF stuff as it did not fit with what I was trying to achieve :wink:.


--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

LOL, now that is whyt I call funny!

Just today I started to do exactly the same tool :)
Havent spend much time on it, and it doesn't work either, so I guess, I'll
just take yours.

Timo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by freak

Just today I started to do exactly the same tool :)
Well I hope you find it useful, if it does not do exactly what you want then I hope it might give you an idea of one way to get it working.


--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

can anyone post a default CSS for (us) who do not have any idea about webcoding ? :)

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by plouf

can anyone post a default CSS for (us) who do not have any idea about webcoding ? :)
Bah, no, read the CSS2 specification ;p

Heh, here's something which makes it look a bit like the PureBasic reference manual:

Code: Select all

PRE.code {
    border: solid black;
    border-width: thin;
    background-color: #FFFFDF;
    white-space: pre;
}

SPAN.keyword {
    font-weight: bold;
    color: #006666;
}

SPAN.comment {
    color: #006666;
}

SPAN.const {
    color: black;
}

SPAN.string {
    color: black;
}

SPAN.command {
    color: black;
}
Edit: forgot to say, if you have bold turned on (such as with the keywords) then your browser may make the characters wider than a normal width one, so any kind of alignment you have in your sources may not work.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Post Reply