Web-based smalltalk editor with syntax highlighting?
Hi guys, I have a Seaside app running in Pharo/Gemstone and I want to provide a simple "code editor" which would basically be a Smalltalk closure. The user should be able to edit this. Then a button to save it and either display a message or get the compiled method so that I can then do what I want. I would also like this editor to provide Syntax highlighting. I know Seaside has WABrowse but this is much more than what I need and has no Syntax highlighting. Is there some tool around? Maybe Amber? Thanks, -- Mariano http://marianopeck.wordpress.com
https://github.com/inxilpro/html-editor-syntax-highlighter On Mon, Aug 25, 2014 at 1:12 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Hi guys,
I have a Seaside app running in Pharo/Gemstone and I want to provide a simple "code editor" which would basically be a Smalltalk closure. The user should be able to edit this. Then a button to save it and either display a message or get the compiled method so that I can then do what I want. I would also like this editor to provide Syntax highlighting.
I know Seaside has WABrowse but this is much more than what I need and has no Syntax highlighting.
Is there some tool around? Maybe Amber?
Thanks,
-- Mariano http://marianopeck.wordpress.com
In Amber there is a code editor but it is all Amber. For highlighting, one can use highlightjs but that's not for editing. Phil On Mon, Aug 25, 2014 at 6:12 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Hi guys,
I have a Seaside app running in Pharo/Gemstone and I want to provide a simple "code editor" which would basically be a Smalltalk closure. The user should be able to edit this. Then a button to save it and either display a message or get the compiled method so that I can then do what I want. I would also like this editor to provide Syntax highlighting.
I know Seaside has WABrowse but this is much more than what I need and has no Syntax highlighting.
Is there some tool around? Maybe Amber?
Thanks,
-- Mariano http://marianopeck.wordpress.com
Hi Mariano,  could easily be done, use CodeMirror which is supporting also Smalltalk syntax highlighting. I already updated WABrowser to support it, see my post a few days ago on seaside-dev: http://lists.squeakfoundation.org/pipermail/seaside-dev/2014-August/006033.h...  If you browse the diff in Seaside of my MCZ version you will find anything you require. Basically it is just a file library with the codemirror javascript files (reduced to the minimum) and the syntax definition file for Smalltalk. Check out this page for an example: http://codemirror.net/mode/smalltalk/ Bye Torsten   Gesendet: Montag, 25. August 2014 um 18:12 Uhr Von: "Mariano Martinez Peck" <marianopeck@gmail.com> An: "Pharo Development List" <pharo-dev@lists.pharo.org> Betreff: [Pharo-dev] Web-based smalltalk editor with syntax highlighting? Hi guys,  I have a Seaside app running in Pharo/Gemstone and I want to provide a simple "code editor" which would basically be a Smalltalk closure. The user should be able to edit this. Then a button to save it and either display a message or get the compiled method so that I can then do what I want.  I would also like this editor to provide Syntax highlighting.  I know Seaside has WABrowse but this is much more than what I need and has no Syntax highlighting.  Is there some tool around? Maybe Amber?  Thanks,  -- Mariano http://marianopeck.wordpress.com
participants (4)
-
Mariano Martinez Peck -
Mariano Vicente -
phil@highoctane.be -
Torsten Bergmann