Htm source editor with preview

Share your advanced PureBasic knowledge/code with the community.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Nice work. Has great potential.
I may look like a mule, but I'm not a complete ass.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

@rsts, could you dl the updated source from the post and try again? @dell_jockey, the font is set to 'fixedsys'
but if that isn't available to you, I think you get what MS thinks is the nearest matching font?
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks, srod :)
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

No it won't think at all, it will use the system default font. Here at my XP it is Times New Roman...

Neat code! You are genius!
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

utopiomania wrote:@rsts, could you dl the updated source from the post and try again? @dell_jockey, the font is set to 'fixedsys'
but if that isn't available to you, I think you get what MS thinks is the nearest matching font?
Works now.

Any idea why I had a problem with the other version?

cheers
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

@rsts, great! The problem was due to me, some last minute stupid search & replace probably. Sorry :oops:
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

no apology necessary - just keep sharing code :)
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

utopiomania

did you (or has anyone) convert this to PB4?

Seems there are a few too many errors for me to correct.

No big deal if you haven't, but if you have and would care to share, I'd be greatful :)

cheers
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

I've converted it to PB4 (a slightly less fancy, but more powerful version) I'm not done yet, but will PM it to you if you can wait while I finish the rest of it.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Many thanks. Very kind of you.

I've worked through a rudimentary "conversion" to the point where it at least appears to work. Just brute force from PB4 "changes" document, nothing more.

It seems it will be good enough to meet my needs (primarily educational/informative - it's quite beautiful code) :)

By happy to send that your way, if you wish.

cheers
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks, rsts! :) If you care to send it I could try to fix what's left to fix (if anything) and repost it above.

The new version is a rewrite from the start, and is going to be a sligthly different program, otherwise
I would have posted the new code here.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Ok, I translated the original code, but two third-party code sequences doesn't work yet, stream load/save
and the find/replace code.

I've uncommented the first and replaced it with rewritten code, and will rewrite the latter too, later unless
the original authors translates it to 4.0 and posts.

Only thing is, I get an 'Internal Server Error' when I try to post the translated code. :(
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Don't know if you noticed but I PM'ed you with a link to the version I had translated.

If you want to host a zip of the code there, I can arrange for it.

cheers
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

snip!
Last edited by utopiomania on Sun Jun 25, 2006 8:17 pm, edited 1 time in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

utopiomania wrote:
Don't host it anywhere, please. :)
Thanks for the post.

No problem about "hosting" it - the link I pm'ed you was private for you only, I'll delete it now :)

cheers
Post Reply