Le 17/09/2014 06:08, Tudor Girba a écrit :
Hi Thierry,
Thanks for the feedback.
Indeed, the styling part works fine. What I do is have a first level
parser that creates commands for styling. When I detect a Smalltalk
block, the command delegates further to Shout.
I guess that this type of design will be useful also for handling
Helvetia multi languages.
Yes. Is Helvetia still active or are most of its components
moved/incorporated in Moose? I had a look because I have to work on DSL
for the next few weeks / months.
But, we still cannot have actions that are segment specific :).
Why? As soon as you have a parser that can structure the contents (build
a tree of it), then it's easy to have specific actions.
Unless you're talking of segment specific keyboard shortcuts (and even
those could be accomodated).
I would
love to be able to have some sort of composite editor where the leaf
editors correspond to a segment.
Yes, it sounds like a reasonable vision. But hard when you consider the
fact that editing the text may make it flow between segments (and hence
between editors). Copy/paste of text over segment boundaries (or simply
selection) could really be a challenge.
This is why Stéphane doesn't like my vision of a code editor which
displays and edit an ast instead of a text understood by a parser.
Now we should really have enough text display capabilities to display
nicely formatted pillar documents as documentation. The current Help
format is ... very nicely minimalistic :(
Thierry