[Pharo-users] Using Playgrounds as a notepad

Dimitris Chloupis kilon.alios at gmail.com
Tue Jan 5 19:02:18 EST 2016


you really have tons of options what we told you is just the tip of the
icebeg, for example you can still use the playground if you enclose your
text inside single quotes which will convert it to a pharo string or double
quotes which will convert to a comment. Having it as a string gives you a
lot of parsing abilities to extract any info you want. The string class
comes with methods like substrings , tokens etc but my favorite way is
regex that can do some pretty complex detections.

TextMorph also comes with PlugableTextMorph which includes a scroll bare
for long text and there is also the option to auto accept any new contents
so you dont have to manually accept them.

If your get info from websites then its better to use BeautifulSoupd a
library specialised on extracting information from websites the easy way.

Stating exactly what you want with actual examples will allows us to help
you more with a specific solution. Pharo is huge with around 800 thousands
method spacking an enormous amount of features making it comparable even
with behemoths like Java :)

On Tue, Jan 5, 2016 at 11:32 PM Andy Burnett <
andy.burnett at knowinnovation.com> wrote:

> Thanks everyone!
> I completely forgot that I should ctrl+s on the workspace. I think I have
> just become too used to google docs etc., and it didn't occur to me that I
> had to save in order to update a model.
>
> Right, I now have two ways forward, and they both look useful for
> different problems.
>
> ws := Workspace open
>
> Gives me a simple way to paste in text, and do some initial hand editing
>
> Clipboard clipboardText
>
> Will be great when I know there is a 'clean-up' method that I need to run
> on e.g. a table I have grabbed from the web.
>
> Cheers
> Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160106/0860af84/attachment.html>


More information about the Pharo-users mailing list