Real time syntax colorizer (web) for Smalltalk

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Real time syntax colorizer (web) for Smalltalk

hernanmd
Dear all, I don't know if this was aready done, but anyway:

<a href="http://cs.hernanmorales.com.ar/codeEditor.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://cs.hernanmorales.com.ar/codeEditor.php

Cheers,

Hernán



Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Enno Schwass

> Dear all, I don't know if this was aready done, but anyway:
>
> http://cs.hernanmorales.com.ar/codeEditor.php
>

Cool.

But works in firefox only, Safari (Mac OS X) fails.
Anyway, cool.

Bye
Enno


Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Dominic Letz
In reply to this post by hernanmd
Thats great,

I just added the editor to my syx code browser:  
http://dominicletz.de/cgi-bin/syx?Bag&indexOf%3A Looks nice there

But it seems like there is a bug in the smalltalk.js which makes the  
Internet Explorer 7 crying. I fixed this by commenting the following line:

smalltalk.js line 10
{ input : /([^"\."\.a-zA-Z0-9_#])([A-Z]+[a-zA-Z0-9_]*)/g, output :  
'$1<u>$2</u>' }, // Class names

So something in this line causes the IE7 to do strange things. Also it  
seems that the code highlighting is different on IE7 and Firefox. When you  
open this link with Firefox:  
http://dominicletz.de/cgi-bin/syx?Dispatcher&methodHref%3A you will see  
that the there starts a miss-highlighting through the lines 3 to 7. While  
on IE7 the miss-highlighting stops at the end of row 3.

Best,
-Dominic


Am 10.11.2007, 18:52 Uhr, schrieb Hernán Morales  
<[hidden email]>:

> Dear all, I don't know if this was aready done, but anyway:
>
> http://cs.hernanmorales.com.ar/codeEditor.php
>
> Cheers,
>
> Hernán



Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

hernanmd
Dominic, when I click your links I get "Error 500: Premature end of script headers: syx".
I forgot to mention it was only tested under Firefox, I do not use IE but if anyone could patch these incompatibilities I would be glad to include it in the release.

Hernán

2007/11/11, Dominic Letz <[hidden email]>:
Thats great,

I just added the editor to my syx code browser:
http://dominicletz.de/cgi-bin/syx?Bag&indexOf%3A Looks nice there

But it seems like there is a bug in the smalltalk.js which makes the
Internet Explorer 7 crying. I fixed this by commenting the following line:

smalltalk.js line 10
{ input : /([^"\."\.a-zA-Z0-9_#])([A-Z]+[a-zA-Z0-9_]*)/g, output :
'$1<u>$2</u>' }, // Class names

So something in this line causes the IE7 to do strange things. Also it
seems that the code highlighting is different on IE7 and Firefox. When you
open this link with Firefox:
http://dominicletz.de/cgi-bin/syx?Dispatcher&methodHref%3A you will see
that the there starts a miss-highlighting through the lines 3 to 7. While
on IE7 the miss-highlighting stops at the end of row 3.

Best,
-Dominic


Am 10.11.2007, 18:52 Uhr, schrieb Hernán Morales
<[hidden email]>:

> Dear all, I don't know if this was aready done, but anyway:
>
> http://cs.hernanmorales.com.ar/codeEditor.php
>
> Cheers,
>
> Hernán






Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Dominic Letz
Yes sometimes the server is not running or just stops running, because
I'm developing on it. I'm sorry for this - But right now it is running
again :-)

-Dominic

Hernán Morales schrieb:

> Dominic, when I click your links I get "Error 500: Premature end of
> script headers: syx".
> I forgot to mention it was only tested under Firefox, I do not use IE
> but if anyone could patch these incompatibilities I would be glad to
> include it in the release.
>
> Hernán
>
> 2007/11/11, Dominic Letz <[hidden email]
> <mailto:[hidden email]>>:
>
>     Thats great,
>
>     I just added the editor to my syx code browser:
>     http://dominicletz.de/cgi-bin/syx?Bag&indexOf%3A
>     <http://dominicletz.de/cgi-bin/syx?Bag&indexOf%3A> Looks nice there
>
>     But it seems like there is a bug in the smalltalk.js which makes the
>     Internet Explorer 7 crying. I fixed this by commenting the following
>     line:
>
>     smalltalk.js line 10
>     { input : /([^"\."\.a-zA-Z0-9_#])([A-Z]+[a-zA-Z0-9_]*)/g, output :
>     '$1<u>$2</u>' }, // Class names
>
>     So something in this line causes the IE7 to do strange things. Also it
>     seems that the code highlighting is different on IE7 and Firefox.
>     When you
>     open this link with Firefox:
>     http://dominicletz.de/cgi-bin/syx?Dispatcher&methodHref%3A
>     <http://dominicletz.de/cgi-bin/syx?Dispatcher&methodHref%3A> you
>     will see
>     that the there starts a miss-highlighting through the lines 3 to 7.
>     While
>     on IE7 the miss-highlighting stops at the end of row 3.
>
>     Best,
>     -Dominic
>
>
>     Am 10.11.2007, 18:52 Uhr, schrieb Hernán Morales
>     <[hidden email] <mailto:[hidden email]>>:
>
>      > Dear all, I don't know if this was aready done, but anyway:
>      >
>      > http://cs.hernanmorales.com.ar/codeEditor.php
>      >
>      > Cheers,
>      >
>      > Hernán
>
>
>
>
>
> ------------------------------------------------------------------------
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Bergel, Alexandre
In reply to this post by Dominic Letz
> I just added the editor to my syx code browser: http://
> dominicletz.de/cgi-bin/syx?Bag&indexOf%3A Looks nice there

Which system am I browsing when I am on this website ?

Alexandre

>
>
> Am 10.11.2007, 18:52 Uhr, schrieb Hernán Morales  
> <[hidden email]>:
>
>> Dear all, I don't know if this was aready done, but anyway:
>>
>> http://cs.hernanmorales.com.ar/codeEditor.php
>>
>> Cheers,
>>
>> Hernán
>
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Michael Haupt-3
Hi,

On 11/13/07, Bergel, Alexandre <[hidden email]> wrote:
> > I just added the editor to my syx code browser: http://
> > dominicletz.de/cgi-bin/syx?Bag&indexOf%3A Looks nice there
>
> Which system am I browsing when I am on this website ?

both the URL and an earlier e-mail of Dominic's in this thread suggest
it's Syx. ;-)

Best,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: Real time syntax colorizer (web) for Smalltalk

Dominic Letz
In reply to this post by Bergel, Alexandre
Syx is a new (development started in may) Smalltalk implementation
mainly written by Luca Bruno. Its homepage is available at:
http://code.google.com/p/syx/


Bergel, Alexandre schrieb:

>> I just added the editor to my syx code browser:
>> http://dominicletz.de/cgi-bin/syx?Bag&indexOf%3A Looks nice there
>
> Which system am I browsing when I am on this website ?
>
> Alexandre
>
>>
>>
>> Am 10.11.2007, 18:52 Uhr, schrieb Hernán Morales
>> <[hidden email]>:
>>
>>> Dear all, I don't know if this was aready done, but anyway:
>>>
>>> http://cs.hernanmorales.com.ar/codeEditor.php
>>>
>>> Cheers,
>>>
>>> Hernán
>>
>>
>>
>