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
The Movie Hollywood (And My Wife) Doesn't Want You To See: Weekend at Jacko's
Sysi: the ultimate administrators toolkit
Movie: Priest Academy
Inspirational Rat Story
A face-melting DSL that allows programming ON the iPhone (and iPad)
The secretGeek Disaster Recovery plan
Save KNVTn! Before it's too late
The Ultimate Agent of WERF Destruction
The new prisoner's dilemma
Original Premise for a road movie
What's a better game than Devshop?
DevShop: The Cool Game that Makes Development Look Fun
Should be purple
Kitchen Agile
Perhaps "Go" is the new Visual Basic
zen-coding: turn those CSS selectors upside down
Debugging: It's all about finding Albuquerque.
The Real-Time online JQuery Editor
HTML5, a 3 minute guide
Developer Codpieces
Agile for one: The Personal Story 'Wall' In Action
Never work with thick people.
Cosmo: project status panel
Windows Search in Japan
Project Management Zen
Continuous Integration, Plugins and Going Too Far
The Rules of Stand Up
Sydney International Airport: Stupid, Criminal, or Criminally Stupid?
God No! ...The ReBuilder
Matt, The Office Mortar
'Outlook style' rules for Subversion
Really deep linking: Url + regex
hExcel -- A Hexagonal Spreadsheet
Is the remote control a thing of the past?
The Utterly Thorough Guide To Awesome Application Compatibility on Windows 7.
Astounding Hyperlinked Noticeboard
Three Questions About Each Bug You Find
Recursing over the Pareto Principle...
Sometimes, The Better You Program, The Worse You Communicate.
.: secretGeek :: Complete Archives
TimeSnapper.com
Version 3.3: true productivity boost
NextAction Managing the top of your mind
World's Simplest Code Generator
25 steps for building a Micro-ISV
3 Minute Guide Series
Universal Troubleshooting Checklist
Top 10 SecretGeek articles
ShinyPower Now at CodePlex
RealTime Online CSS Editor
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
Rhys Parry
Joel Pobar
OJ Reeves
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)
|