Thus Spake Gaksloope: The future of browse and code
My strange friend Gaksloope, who lives in an alternative-reality cubicle, fourteen minutes into the future, sent me an IM message today that i thought i'd share. (first, recall that alternative universes only ever seem to inter-communicate via instant messaging services. And Google talk is weapon-of-choice for most trans-temporal-cross-reality chatters. But we digress.) Here is what Gaksloope has to say:
gaks:It 'trigues me that you whine about syntax highlighting for the web, when here, in my alternative-reality cubicle, fourteen minutes into the future, we have very nice syntax highlighting features available from all of the seven popular browsers.
leon:syntax highlighting controls? i don't get it?
gaks:oh it's easy, you start typing and it highlights for you and has intellisense too
leon://show me the code//, gakza, i can sell this to some fools i know
gaks:here goes. first you drop a textarea tag into your document like this:
<textarea>
</textarea>
leon:OK, np.
gaks:next you set the syntax attribute, to tell it what syntax to use:
<textarea syntax="http://www.w3c.org/syntax/microsoft/CSharp.syntax"></textarea>
leon:So what does that do?
gaks:That tells the browser what syntax we're expecting.
leon:The browser? Don't you mean the server?
gaks:The browser, the browser, man, everything interestng happens on the browser. anyway forget the server. We don't have those here -- everyone's machines act as nodes in giant peer-to-peer clusters. Client machines are more powerful than servers these days anyway. it's the "reverse 'big-fish-eats-little-fish' rule of computing." Sheesh - sometimes i think you must be //sixteen// minutes behind in your alternative reality cubicle.
leon:so the browser loads and parses that document... Csharp.syntax, before it renders the textarea tag? must be slow.
gaks:no, it axs for it.
leon:axs?
gaks:Asynchronous Xml Slurping. Tell me, for the love of god, you've got AXS?
leon:oh //that// 'AXS'. yes, even our shoe laces can do that here... um.
gaks:so the browser axs the syntax file. notice that i ax'd it from w3c.org, rather than the more popular one located at Apple.com.
leon:apple?
gaks:since Apple.com bought microsoft.org they own the spec to c-sharp as well.
leon:dot org? did you say microsoft.org? HA!
gaks:typo sorry. microsoft.borg. they got their own top level domain, right before steve ballmer went insane and crushed bill gates to death in his giant grip, then ate him.
leon:that happened in your reality?
gaks:oh, that happens in every reality. it's one of the five universal constants. you mustn't have reached that bit yet.
leon:i'll.. i'll look out for it.
gaks:so anyway, the syntax file tells the browser that the language has certain symbols for comments, certain keywords, operators and the like. this is all simple stuff that has been well understood in every reality for a long time. And it's the next attribute that tells the browser how to style each of these particles; what colors and fonts and so on. This is the 'highlight' attribute:
<textarea
syntax="http://www.w3c.org/syntax/microsoft/CSharp.syntax"
highlight="http://www.csszengarden/styles/highlights/DancingSea.css"
>
</textarea>
leon:and that's it? syntax highlighting in the browser?
gaks:oh it doesn't stop there. there's intellisense as well -- just specify the dictionary of possibilities:
<textarea
syntax="http://www.w3c.org/syntax/microsoft/CSharp.syntax"
highlight="http://www.csszengarden/styles/highlights/DancingCfamily.css"
intellisense="http://www.apple.com/microsoft/csharp.terms"
> </textarea>
gaks:one more trick -- we let the user expand the intellisense possbilities with their own, local, list of terms.
<textarea
syntax="http://www.w3c.org/syntax/microsoft/CSharp.syntax"
highlight="http://www.csszengarden/styles/highlights/DancingCfamily.css"
intellisense="http://www.apple.com/microsoft/csharp.terms"
clientIntellisense="csharp.terms"
> </textarea>
gaks:It works like a Custom Dicionary in Apple Word.
leon:abra cadabra
** gaks may not reply because his/her status has changed to 'no available ripple in trans-reality fibril or offline' **
Ah... there you have it. Maybe i'll share again, next time i hear from Gaksloope. Best of luck.
'nate' on Fri, 26 Aug 2005 03:06:19 GMT, sez: Very enlightening (read funny). I look forward to future encounters with Gaksloope.
> i can sell this to some fools i know
At the risk of turning space-time itself on it's head as a result of cross-polinating code between alternate realities? I wish I was that brave.
'secretGeek' on Mon, 29 Aug 2005 00:10:30 GMT, sez: >risk of turning space-time itself on it's head as a result of cross-polinating code between alternate realities ??
sure -- where do you think the first version of linux came from? some kid's bedroom? yeh right.
'Andrew R' on Mon, 29 Aug 2005 09:06:56 GMT, sez: It has just dawned on me ..... secretGeek --> the modern superman !!
PS. what does Mrs secretGeek think of your imaginary friends?
'secretGeek' on Mon, 29 Aug 2005 22:08:15 GMT, sez: >the modern superman
you got that right. but instead of x-ray vision i've got tired eyes from squinting at a monitor.
>what does Mrs secretGeek think of your imaginary friends?
Who says Mrs secretGeek isn't imaginary? Sure you've met her once... or did you just imagine it?
'The coninuing adventures of Gaksloope' on Fri, 23 Sep 2005 00:07:42 GMT, sez: Surgery via AJAX... Gaksloope speaks out.
|
Articles
Do they store the code for TFS in TFS?
Sudden TimeSnapper Discount!
How Can Microsoft Beat Google?
TimeSnapper 3.1: Attack of the the Red/Green Stripes
21 tools used in our MicroISV
Lost Treasures of the DOS World: tree!
The Virtual Machine Machine and the Virtual Virtual Machine
Should Linq To Sql Go "Open Source"?
Redux: New Synchronisation Idea Overlooked By Microsoft
New Synchronisation Idea Overlooked By Microsoft Live team
Visual Studio UX Taskforce, Office UX Taskforce... etc.
How to be Jeff Atwood
.: secretGeek :: Complete Archives :.
25 steps for building a Micro-ISV
3 Minute Guide Series
Top 10 SecretGeek articles
Downloads
TimeSnapper.com
Version 3.1: instant productivity profiles
ShinyPower Now at CodePlex
NextAction Managing the top of your mind
Thai Erawan, Brisbane Restaurant
World's Simplest Code Generator
Gradient Maker
How to be depressed
You are not inadequate.
Recommended Reading
The Best Software Writing I
The Business Of Software (Eric Sink)
Recommended blogs
Jeff Atwood
Reginald Braithwaite
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Joel Pobar
Eric Sink
Joel Spolsky
Des Traynor
Aggregated Links
programming.reddit.com
dzone
dot net kicks
Human Link Machines
interesting finds
a continuous learner's weblog
arjan's world
n links today
new and notable
morning coffee
learning .net
weekly link post
(my del.icio.us account)
|