W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] Syntax Highlighting [was: several messages]

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sun, 21 Nov 2004 01:31:13 -0500
Message-ID: <41A03631.8070809@inkedblade.net>
James Graham wrote:
> 
> The details of that suggestion were way too complex. But replace all the 
> rubbish about URIs with 'allow an optional attribute specifying the MIME 
> type of the data type expected in the textarea'. Since many browsers use 
> text editing components that already support features such as syntax 
> highlighting (or, I would be surprised if they don't), it would seem 
> very plausible that at least some browsers would make use of this 
> attribute to provide a better text editing experience. Since many 
> applications (e.g. CMS systems) require the input of specific data types 
> (html) in text areas, this could be a big usability win for any browser 
> that implements it. Clearly syntax highlighting is not the only 
> possibility - a spellchecker could be set up to ignore certian data 
> types or certian poritions of the text in a particular data type.

I don't know if MIME would be able to give enough information: perhaps
the attribute value could be MIME or a set of pre-defined keywords.
(e.g. I don't think Perl has its own registered MIME type.)

Also, another thing you could do if you just have an informational attribute
like this is to allow editing the textarea content in an external editor.
That should not be very complicated to implement.
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2004-July/001064.html

~fantasai
-- 
http://fantasai.inkedblade.net/contact
Received on Saturday, 20 November 2004 22:31:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC