[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-promo
Subject:    Re: [kde-promo] New wiki for developer.kde.org
From:       Eike Hein <sho () eikehein ! com>
Date:       2006-08-30 18:52:42
Message-ID: 44F5DE7A.6030207 () eikehein ! com
[Download RAW message or body]

Olaf Jan Schmidt
> These are not syntax highlighting extentions for editing code, only for 
> displaying it. It is technically impossible to have syntax highlighting in an 
> online editor (unless you implement the editor in Java or Flash).

Actually, that's not really true these days, at least in
a technical sense. Websites have been doing dynamic rich
text in WYSIWYG editor controls written using XHTML, CSS
and JavaScript for a number of years now; in bulletin
boards it's standard fare. Many of these even do online
auto-spellchecking a la KTextEdit, with the assistance
of a server backend. If you can do dynamic rich text,
and access the text being typed by the user (which you
can), you can do syntax highlighting much like Kate does
it, too.

In practice, you're going to run into a number of pro-
blems, however. One is performance, as syntax highligh-
ting is quite demanding to do, and browser's JavaScript
engines have a hard time catching up with the rising de-
mand for more dynamic websites at the moment. Another is
that KHTML and KJS apparently lack some of the conve-
nience features that make these controls easier to write
for Gecko-based (Mozilla/Firefox) or MSHTML-based
browsers.

A few demos that probably only work in Firefox or IE:
http://www.fckeditor.net/demo/
http://tinymce.moxiecode.com/example_full.php?example=true

A list: http://geniisoft.com/showcase.nsf/WebEditors

Considering the obvious geek appeal of reinventing rich
text editing in a website without requiring a plug-in
(look at how giddy everybody is about web-based word
processors like Writely: http://www.writely.com/), I'd
be surprised if there isn't at least one of the open
source HTML widget projects that has tried to do syn-
tax highlighting.


-- 
Regards,
Eike Hein, sho@eikehein.com

 
_______________________________________________
This message is from the kde-promo mailing list.

Visit https://mail.kde.org/mailman/listinfo/kde-promo to unsubscribe, set digest on \
or temporarily stop your subscription.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic