AOTHER QB markup lang+browser!!!

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

AOTHER QB markup lang+browser!!!

Post by bongomeno »

So i was looking at Pharos Qbrowse.... Its a very cool program.
It inspired me to make my own browser and language.

I already made a homepage (with a bunch of links to my other pages) in it and my friend is making one to.

I call it 'Win Browse SML Viewer' (sml means small markup language)

Win Browse consists of 2 programs that work together.
One is the browser and the other handles the network stuff.
The only big difference really is that I wrote the program that
downloads the webpage.

the browser is written in: QBasic
and the page downloader: Blitz Basic

the features of sml are:
- color text (16 colors or -1 to flash random ones)
- links (press space and type the link number, max of 99 links per page)
- horizontal lines
- no popups or network code or other scripts gets mixed with the page
- very simple/fairly fast

example .sml page:

Code: Select all

#START#

#COLOR=14#BongoMenos Homepage

#HORLINE#

Geek Basic Home...
#LINK=http://freewebs.com/gbserver/index.sml#

Hi, Im BongoMeno and I am very cool!
blah blah blah
yhata yhata poopoo doodoo coocoo choochoo train!!!

#HORLINE#

Geek Basic Spoftware 2008

#END#
ill post the link for a download asap.[/code]
Last edited by bongomeno on Fri Apr 24, 2009 6:04 pm, edited 1 time in total.
Pharoah
Coder
Posts: 33
Joined: Sun Nov 27, 2005 10:35 am
Location: Pennsylvania, United States
Contact:

Post by Pharoah »

Nice work! SML reminds me of wiki style markup langauges. It's definitely a different approach from the one I've taken.

You should try writing a QML reader, though. You'd have more pages to test it on, for one thing, although like I said the count is only 20 something right now (including a QB split function tutorial I wrote).

I have written a couple of downloader programs myself, one in FB and one in Python, but I find that wget tends to have a lot nicer features and it works on a bunch of platforms. I wrote a similar program called Qget that pre-renders QML pages and after fetching them using the ChiSock network routines for FreeBasic.
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

woot

Post by bongomeno »

here is the link to download Win Browse. :P
extract the zip file and run wb.exe.
post here for help.

http://www.mediafire.com/?sharekey=2051 ... f6e8ebb871
Pharoah
Coder
Posts: 33
Joined: Sun Nov 27, 2005 10:35 am
Location: Pennsylvania, United States
Contact:

Post by Pharoah »

Interesting... I'm trying to write a SML=>QML converter thing in PHP to link the SML and QML nets. I can't figure out what COLOR=-1 does, though.

EDIT:

Converter half done. You can see it in a QML reader at
http://pharoah.xetaspace.net/sml

You can also view it through the online QML viewer (which is very primitive) at
http://pharoah.xetaspace.net/webview/in ... ce.net/sml

PS: You know you can use ' instead of REM, right? Also, you can omit LET altogether :).
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

cool!

Post by bongomeno »

Wow, dude thats nice!
Ill try to make a qml browser if i can as well as a qml page of my own
btw the -1 color causes it to flash random colors on the line as you scroll.
Pharoah
Coder
Posts: 33
Joined: Sun Nov 27, 2005 10:35 am
Location: Pennsylvania, United States
Contact:

Post by Pharoah »

Hmm, well I couldn't replicate the random color flashing with my PHP script but I did make it select a random color. I like the effect, though :).
Pharoah
Coder
Posts: 33
Joined: Sun Nov 27, 2005 10:35 am
Location: Pennsylvania, United States
Contact:

Post by Pharoah »

Just wondering how your QML reader is coming along... It's kind of a fun project to work on. Right now I'm writing another version of Qbrowse
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

ive actually put my networking projects on the side for a few days because of school and my learning ASM. I will definitly work on it more soon. =]
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

This might sound like a dumb thing to ask, but does anybody still have this program? My computer it COMPLETELY destroyed and I lost most of my stuff. If you still have it, could you please email it to me at bongo_meno@yahoo.com or post it somewhere where I can download it. I would like to work on it again.

thanks.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

You should always backup your stuff!

Go to a place like 4shared.com and put your files there for free. All you have to remember is to log in once a month.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post by bongomeno »

I know that this thread is old, but I think I should say this.

My friend still had the program and gave it to me, so I posted it on my website. www.geekbasic.webs.com

I thought I should say this just in case someone passing by wanted to check it out.
Post Reply