Page 1 of 1
Posted: Sun Mar 02, 2003 8:38 pm
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

.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, Ed3.53)
Posted: Sun Mar 02, 2003 11:24 pm
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
Posted: Mon Mar 03, 2003 7:47 pm
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)
Posted: Mon Mar 03, 2003 8:10 pm
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
Posted: Mon Mar 03, 2003 8:24 pm
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)