Hi Doru,
I was exploring Stephan Eggermont's code Panel because the
zooming in/out behavior implemented there, but I would like to add
your Pillar text editor to the exploration.
I would like to add two things:
1. Font decrease/increase buttons/shorcuts, because for long
documents, default font size can be tiresome.
2. Augmenting the amount of syntax highlighting languages,
starting with markdown. I think that this would be strategic in
making writing inside the image, more appealing, giving the spread
of markdown as a documentation syntax in different context
(GitHub, Scholar markdown, wikis, discussion, Slack clones, etc).
I installed the extension today on a Pharo 5 system, but trying to
use it, bring me the error detailed at the end of this mail, so
after having it working on Pharo, I would like to explore/help in
implementing items 1 and 2, avove.
Cheers,
Offray
Error report
===========
Author: OffrayLuna
Array(Object)>>shouldNotImplement
Array(ArrayedCollection)>>add:
[ :each | self add: each ] in Array(Collection)>>addAll:
Array(SequenceableCollection)>>do:
Array(Collection)>>addAll:
[ :array |
({array first}
��� addAll: array last;
��� yourself)
��� collect: [ :each |
��� ��� ('' join: each first)
��� ��� ��� -> (each second ifNotNil: [ :second | '' join: second
]) ] ] in GTPillarHighlighter>>scriptParameters
PPActionParser>>parseOn:
PPDelegateParser>>parseOn:
PPSequenceParser>>parseOn:
PPActionParser>>parseOn:
PPDelegateParser>>parseOn:
PPChoiceParser>>parseOn:
PPDelegateParser>>parseOn:
PPChoiceParser>>parseOn:
PPPossessiveRepeatingParser>>parseOn:
PPDelegateParser>>parseOn:
PPEndOfInputParser>>parseOn:
GTPillarHighlighter(PPDelegateParser)>>parseOn:
GTPillarHighlighter(PPParser)>>parseWithContext:
GTPillarHighlighter(PPParser)>>parse:withContext:
GTPillarHighlighter(PPParser)>>parse:
GTPillarHighlighterTextDecorator>>parse:onError:
GLMHighlighterTextParserStyler>>privateStyle:
[ self privateStyle: text.
view ifNotNil: [ view stylerStyledInBackground: text ] ] in [
backgroundProcess := [ self privateStyle: text.
view ifNotNil: [ view stylerStyledInBackground: text ] ]
��� forkAt: Processor userBackgroundPriority ] in
GLMHighlighterTextParserStyler(SHTextStyler)>>styleInBackgroundProcess:
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess
===============
On 09/10/16 16:23, Tudor Girba wrote:
Hi,
Pillar now ships with a text editor that also
features a syntax highlighter.
So, now, if you load the development version of
Pillar:
Gofer new�
� � smalltalkhubUser: 'Pier' project: 'Pillar';
� � configuration;
� � loadDevelopment.
You will have an extra presentation when inspecting a .pillar
file:
The new thing here is that the highlighter is based
on the Pillar PetitParser, and it is extensible for highlighting
more parts if needed. The highlighting also can support actions.
For example, the picture above shows the file to the right after
clicking on the reference.
Please take a look and let me know what you think.
Cheers,
Doru