Hi,
I wrote a Smalltalk syntax highlighting file for Kate (KDE text editor). Details are explained here: http://smalltalk.gnu.org/blog/nico/kate- text-editor-smalltalkers If someone use it, please tell me what you think! Cheers, Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
That rocks Nico ;)
Gwen On Mon, 2010-01-11 at 11:29 +0100, Nicolas Petton wrote: > Hi, > > I wrote a Smalltalk syntax highlighting file for Kate (KDE text editor). > > Details are explained here: http://smalltalk.gnu.org/blog/nico/kate- > text-editor-smalltalkers > > If someone use it, please tell me what you think! > > Cheers, > > Nico > > > _______________________________________________ > help-smalltalk mailing list > [hidden email] > http://lists.gnu.org/mailman/listinfo/help-smalltalk _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Le lundi 11 janvier 2010 11:35:32, Gwenael Casaccio a écrit :
> That rocks Nico ;) Thanks! Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
On 01/11/2010 11:43 AM, Nicolas Petton wrote:
> Le lundi 11 janvier 2010 11:35:32, Gwenael Casaccio a écrit : >> That rocks Nico ;) > > Thanks! Maybe you can send it for inclusion into Kate? Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Le lundi 11 janvier 2010 13:24:11, Paolo Bonzini a écrit :
> On 01/11/2010 11:43 AM, Nicolas Petton wrote: > > Le lundi 11 janvier 2010 11:35:32, Gwenael Casaccio a écrit : > >> That rocks Nico ;) > > > > Thanks! > > Maybe you can send it for inclusion into Kate? Yes, that was my idea too :) Nico > > Paolo > _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
In reply to this post by Nicolas Petton
Doesn't download, timeout. You have another location? I'd have a look at
it as I wrote already kate syntaxers as well as using Smalltalk too. Nicolas Petton wrote: > Hi, > > I wrote a Smalltalk syntax highlighting file for Kate (KDE text editor). > > Details are explained here: http://smalltalk.gnu.org/blog/nico/kate- > text-editor-smalltalkers > > If someone use it, please tell me what you think! > > Cheers, > > Nico > > > _______________________________________________ > help-smalltalk mailing list > [hidden email] > http://lists.gnu.org/mailman/listinfo/help-smalltalk > Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://epsylon.rptd.ch/ , http://www.moddb.com/games/4057/epsylon ) - Game Engine: Drag(en)gine ( http://dragengine.rptd.ch , http://www.moddb.com/engines/9/dragengine ) - Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php ) _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (269 bytes) Download Attachment |
In reply to this post by Nicolas Petton
Ah, it worked now, could download it. Nice highlighting but code folding
is not working. You're building up the folding stack a lot so it could come down on you with large files. I'll see if I can fix this if you allow me to do so. Nicolas Petton wrote: > Hi, > > I wrote a Smalltalk syntax highlighting file for Kate (KDE text editor). > > Details are explained here: http://smalltalk.gnu.org/blog/nico/kate- > text-editor-smalltalkers > > If someone use it, please tell me what you think! > > Cheers, > > Nico > > > _______________________________________________ > help-smalltalk mailing list > [hidden email] > http://lists.gnu.org/mailman/listinfo/help-smalltalk > Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://epsylon.rptd.ch/ , http://www.moddb.com/games/4057/epsylon ) - Game Engine: Drag(en)gine ( http://dragengine.rptd.ch , http://www.moddb.com/engines/9/dragengine ) - Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php ) _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (269 bytes) Download Attachment |
Le lundi 11 janvier 2010 20:47:42, Roland Plüss a écrit :
> Ah, it worked now, could download it. Nice highlighting but code folding > is not working. Yes, I saw that but I didn't have time to try to make it work. > You're building up the folding stack a lot so it could > come down on you with large files. I'll see if I can fix this if you > allow me to do so. Sure, please do so :) Cheers, Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
_______________________________________________
help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (269 bytes) Download Attachment |
Not sure I got the real meaning of this post :)))
2010/1/15 Roland Plüss <[hidden email]>: > _______________________________________________ > help-smalltalk mailing list > [hidden email] > http://lists.gnu.org/mailman/listinfo/help-smalltalk > -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Pfft... GST mailing list hates me :P . Let's try again
Sorry for the delay but life chased me around in circles <.=.< Anyways I took a stab at the syntax file but it's written in a bit a "particular" way so I had to scrap it and rewrite it from scratch to get what I wanted. On one side you used rules which do not work like that in Kate as well as the context stacking I mentioned earlier. Besides you used your own format styles and the unwritten rule in Kate is to stick to the provided format styles as much as possible. Has the reason to let people recognize similar concepts in different languages ( like most language have functions/methods, keywords, strings or comments ). Payed attention to all these requirements in the rewritten version. Since I didn't use code from you ( except the one and only keywords block at the beginning ) I put myself as the author. Not sure anyways if you can put multiple authors in a kate syntax file. I think you can but I don't remember anymore how. I think I covered most of the syntax highlighting which makes sense but please have a look at it and see if I missed something. We can also discuss about the colors. I used the color variations I used for my other syntax highlighters but that's not written in stone. So here first a little list of what the highlighter does: - comments - meta-data ( for example <comment: ... > ) - variable declarations ( aka | bla bla | ) - method definitions - classes ( if first letter of an object is upper case ) - operators ( if method call contains operator style characters ) - objects ( true, false, nil and company ) - instance variables ( refers to using them not defining them ) - method calls ( can tell them apart from instance variables ) - literals ( strings as well as symbols like $a ) - arrays ( supports folding array definitions ) - code blocks ( supports folding code blocks but no level dept colorizing like the original syntax highlighter does. I don't think it helps much so I left it out ) And here the link to the file. It's the same filename as the original highlighter so back up the previous script if you want to compare the two. http://rptd.ch/misc/kate_syntax/kate_syntax_smalltalk-1.0.7z Feedback and suggestions welcome. > Not sure I got the real meaning of this post :))) > > 2010/1/15 Roland Plüss <[hidden email]>: > >> _______________________________________________ >> help-smalltalk mailing list >> [hidden email] >> http://lists.gnu.org/mailman/listinfo/help-smalltalk >> >> > > Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://epsylon.rptd.ch/ , http://www.moddb.com/games/4057/epsylon ) - Game Engine: Drag(en)gine ( http://dragengine.rptd.ch , http://www.moddb.com/engines/9/dragengine ) - Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php ) _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (269 bytes) Download Attachment |
Hi,
I admit my file is probably not perfect, as it is my first syntax highlighting file for Kate. Some issues you mentioned are fixed in the last commit on the github repository, except for block variables I think (I may be wrong). About your syntax file, it doesn't seem to work so well. Can you confirm that with this code: Object subclass: Foo [ foo [ <category: 'some-category'> OrderedCollection. self doSomething: OrderedCollection with: self. self doSomething: self something. self doSomething. self something do: [:each | each printNl]. self bar. ] ] - The pragma is not highlighted. - The first "OrderedCollection" is colored, but not the second. - the coloration of the "self" at the end of the third line of the method is also wrong. - In the next line, it's "self something" which seems to be wrong. - In the next line, the block break the highlighting, because everything I write after that is green. Anyway I'm glad that you're helping :-) Cheers! Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (204 bytes) Download Attachment |
In reply to this post by Roland Plüss-2
> Anyways I took a stab at the syntax file but it's written in a bit a > "particular" way so I had to scrap it and rewrite it from scratch to get > what I wanted. On one side you used rules which do not work like that in > Kate as well as the context stacking I mentioned earlier. Besides you > used your own format styles and the unwritten rule in Kate is to stick > to the provided format styles as much as possible. I took some parts of it from the scheme syntax file, maybe I shouldn't have... Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (204 bytes) Download Attachment |
In reply to this post by Nicolas Petton
> About your syntax file, it doesn't seem to work so well. > > Can you confirm that with this code: > > Object subclass: Foo [ > > foo [ > <category: 'some-category'> > OrderedCollection. > self doSomething: OrderedCollection with: self. > self doSomething: self something. > self doSomething. > self something do: [:each | each printNl]. > self bar. > ] > ] > > - The pragma is not highlighted. > - The first "OrderedCollection" is colored, but not the second. > - the coloration of the "self" at the end of the third line of the > method is also wrong. > - In the next line, it's "self something" which seems to be wrong. > - In the next line, the block break the highlighting, because everything > I write after that is green. > changes at 4 in the morning so blame the remaining ( and new ) problems on the lack of sleep and coffee :P http://rptd.ch/misc/kate_syntax/kate_syntax_smalltalk-1.1.7z -- Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://epsylon.rptd.ch/ , http://www.moddb.com/games/4057/epsylon ) - Game Engine: Drag(en)gine ( http://dragengine.rptd.ch , http://www.moddb.com/engines/9/dragengine ) - Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php ) _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (269 bytes) Download Attachment |
Free forum by Nabble | Edit this page |