Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- 5 participants
- 50345 messages
Re: [Pharo-users] Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Stéphane Ducasse
hi marco
welcome :)
May be you should ask seaside questions to the seaside mailing-list?
Because you will have a better chance to get an answer.
stef
On May 11, 2010, at 10:57 PM, Marco A. Gonzalez wrote:
> Hi, I'm new to Pharo, and think that along with Seaside, it is so well architected that it's compelling me to try it for professional web development.
>
> I've created a simple web application in Seaside into which I'd like to incorporate a WYSIWYG Javascript editor for the HTML textarea tags so my users can enter stylized text. I've used TinyMCE in the past in my Java-based web apps, and it's been very simple to integrate. See http://tinymce.moxiecode.com/.
>
> However, I can't get it to work in my Pharo/Seaside web applications. It just doesn't show up in my web browser.
> I hope I've specified everything below clearly, completely and succinctly. Has anyone else incorporated TinyMCE successfully? What am I missing? What am I doing wrong?
>
> Below are the relevant snippets of code:
> ----
> #updateRoot: anHtmlRoot
> super updateRoot:anHtmlRoot.
>
> "Adds tinyMCE javascript code to the document with a 'script src='
> anHtmlRoot addScript: self tinyMCEJavascript.
>
> #tinyMCEJavascript
> ^'
> tinyMCE.init({
> // General options
> // mode : "textareas",
>
> mode : "specific_textareas",
> editor_selector : "useJavascriptWYSIWYGEditor",
>
> theme : "advanced",
> plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
>
> // Theme options
> theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
> theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
> theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
> theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
> theme_advanced_toolbar_location : "top",
> theme_advanced_toolbar_align : "left",
> theme_advanced_statusbar_location : "bottom",
> theme_advanced_resizing : true,
>
> // Example content CSS (should be your site CSS)
> content_css : "css/example.css",
>
> // Drop lists for link/image/media/template dialogs
> template_external_list_url : "js/template_list.js",
> external_link_list_url : "js/link_list.js",
> external_image_list_url : "js/image_list.js",
> media_external_list_url : "js/media_list.js",
>
> // Replace values for the template plugin
> template_replace_values : {
> username : "Some User",
> staffid : "991234"
> }
> });
> '.
>
> #renderContentOn: html
> html document addLoadScript:'tinyMCE.init();'.
>
> html div class: 'AmagaviBNIEventEditor'; with: [
> html form multipart with: [
> html table class: 'rolodex'; with:[
>
> html tableRow:[
> html tableHeading:'Descriptive text'.
> html tableData:[
> html textArea
> "class: 'content';"
> class: 'useJavascriptWYSIWYGEditor';
> columns: '60';
> rows: '5';
> callback: [ :editedValue | self event descriptiveText: editedValue ];
> value: self event descriptiveText.
> ].
> ]. "tableRow"
> ]. "table"
>
> html submitButton
> callback: [ self save. ];
> value: 'Save'.
>
> html submitButton
> callback: [self cancel];
> value: 'Cancel'.
> ]. "form"
> ]. "div"
>
> ----
>
> Using my web browser, when I "view source" to see the HTML, I appropriately see the following HTML in between the <head></head> tags:
> <script type="text/javascript" src="/amagaviBNI?_s=UOMr33WyYGqoSDx0"></script>
>
> Copy/Pasting the "/amagaviBNI?_s=UOMr33WyYGqoSDx0" in my browser appropriately shows the tinyMCE.init() javascript method that is referenced by #tinyMCEJavascript.
>
> The textarea HTML appropriately shows
> <textarea rows="5" cols="60" class="useJavascriptWYSIWYGEditor" name="5">This is an event. </textarea>
>
> The body tag looks like this:
> <body onload="onLoad()">
>
> ... and right above the closing body tag, the HTML is...
> <script type="text/javascript">/*<![CDATA[*/function onLoad(){tinyMCE.init();}/*]]>*/</script></body>
>
> I'm using PharoCore1.0, Latest update: #10517 on a Macintosh MacBookPro with OS X v10.5.8.
> Using "printIt" on SmalltalkImage current vmVersion, I get
> 'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM 4.2.2b1'
>
> I think I'm using Seaside 3.0a5 since I have a window entitled "Seaside 3.0a5" but since I've used the World menu > System > Software update to update my system, I don't know if it's been updated. I also don't know what to evaluate to determine what actual version of Seaside I'm running so I'd be grateful if someone could tell me how to do that too. If there's a newer version of Seaside that I've not been getting using "Software update", then would you tell me how to get the most recent, "usable" version also?
>
> Finally, thanks to everyone who has developed all the above-mentioned components, as well as the people using Pharo and Seaside and have been posting and answering questions. I hope to get to a point of expertise where I can contribute as well.
>
> - Marco A.
> ---------
> Marco A. Gonzalez
> web: http://www.amagavi.com/
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010
Request help in using any WYSIWYG Javascript editor, preferably TinyMCE
by Marco A. Gonzalez
Hi, I'm new to Pharo, and think that along with Seaside, it is so well
architected that it's compelling me to try it for professional web
development.
I've created a simple web application in Seaside into which I'd like
to incorporate a WYSIWYG Javascript editor for the HTML textarea tags
so my users can enter stylized text. I've used TinyMCE in the past in
my Java-based web apps, and it's been very simple to integrate. See http://tinymce.moxiecode.com/
.
However, I can't get it to work in my Pharo/Seaside web applications.
It just doesn't show up in my web browser.
I hope I've specified everything below clearly, completely and
succinctly. Has anyone else incorporated TinyMCE successfully? What am
I missing? What am I doing wrong?
Below are the relevant snippets of code:
----
#updateRoot: anHtmlRoot
super updateRoot:anHtmlRoot.
"Adds tinyMCE javascript code to the document with a 'script src='
anHtmlRoot addScript: self tinyMCEJavascript.
#tinyMCEJavascript
^'
tinyMCE.init({
// General options
// mode : "textareas",
mode : "specific_textareas",
editor_selector : "useJavascriptWYSIWYGEditor",
theme : "advanced",
plugins :
"safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
// Theme options
theme_advanced_buttons1 :
"save
,newdocument
,|
,bold
,italic
,underline
,strikethrough
,|
,justifyleft
,justifycenter
,justifyright
,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 :
"cut
,copy
,paste
,pastetext
,pasteword
,|
,search
,replace
,|
,bullist
,numlist
,|
,outdent
,indent
,blockquote
,|
,undo
,redo
,|
,link
,unlink
,anchor
,image
,cleanup
,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 :
"tablecontrols
,|
,hr
,removeformat
,visualaid
,|
,sub
,sup
,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 :
"insertlayer
,moveforward
,movebackward
,absolute
,|
,styleprops
,spellchecker
,|
,cite
,abbr
,acronym
,del
,ins
,attribs
,|
,visualchars
,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/example.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
'.
#renderContentOn: html
html document addLoadScript:'tinyMCE.init();'.
html div class: 'AmagaviBNIEventEditor'; with: [
html form multipart with: [
html table class: 'rolodex'; with:[
html tableRow:[
html tableHeading:'Descriptive text'.
html tableData:[
html textArea
"class: 'content';"
class: 'useJavascriptWYSIWYGEditor';
columns: '60';
rows: '5';
callback: [ :editedValue | self event descriptiveText:
editedValue ];
value: self event descriptiveText.
].
]. "tableRow"
]. "table"
html submitButton
callback: [ self save. ];
value: 'Save'.
html submitButton
callback: [self cancel];
value: 'Cancel'.
]. "form"
]. "div"
----
Using my web browser, when I "view source" to see the HTML, I
appropriately see the following HTML in between the <head></head> tags:
<script type="text/javascript" src="/amagaviBNI?
_s=UOMr33WyYGqoSDx0"></script>
Copy/Pasting the "/amagaviBNI?_s=UOMr33WyYGqoSDx0" in my browser
appropriately shows the tinyMCE.init() javascript method that is
referenced by #tinyMCEJavascript.
The textarea HTML appropriately shows
<textarea rows="5" cols="60" class="useJavascriptWYSIWYGEditor"
name="5">This is an event. </textarea>
The body tag looks like this:
<body onload="onLoad()">
... and right above the closing body tag, the HTML is...
<script type="text/javascript">/*<![CDATA[*/function onLoad()
{tinyMCE.init();}/*]]>*/</script></body>
I'm using PharoCore1.0, Latest update: #10517 on a Macintosh
MacBookPro with OS X v10.5.8.
Using "printIt" on SmalltalkImage current vmVersion, I get
'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM
4.2.2b1'
I think I'm using Seaside 3.0a5 since I have a window entitled
"Seaside 3.0a5" but since I've used the World menu > System > Software
update to update my system, I don't know if it's been updated. I also
don't know what to evaluate to determine what actual version of
Seaside I'm running so I'd be grateful if someone could tell me how to
do that too. If there's a newer version of Seaside that I've not been
getting using "Software update", then would you tell me how to get the
most recent, "usable" version also?
Finally, thanks to everyone who has developed all the above-mentioned
components, as well as the people using Pharo and Seaside and have
been posting and answering questions. I hope to get to a point of
expertise where I can contribute as well.
- Marco A.
---------
Marco A. Gonzalez
web: http://www.amagavi.com/
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Stéphane Ducasse
I saw but I want that on http://book.pharo-project.org
On May 11, 2010, at 10:41 AM, Lukas Renggli wrote:
> See http://code.google.com/p/pharo/issues/detail?id=2407.
>
> Lukas
>
> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
>> mariano
>>
>> can you create a page on the book with that?
>>
>> Stef
>>
>> On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>>
>>>
>>>
>>> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
>>> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>>>
>>>> If I understood correctly it is about the matching of brackets and
>>>> quotes. In this regard, the completion behaves exactly like TextMate.
>>>
>>>> So, why is this a bug?
>>>
>>> How do you manage to type a single quote in TextMate? Does that work
>>> in Pharo?
>>>
>>>
>>> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>>>
>>> I keep winding up with too many right parens. It is possible that I
>>> am typing too many. My suspicion is that Pharo is providing too
>>> many.
>>>
>>> This is how it works:
>>>
>>> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>>>
>>> 2) when you type the RIGHT side, it only writes the right side.
>>>
>>> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>>>
>>>
>>> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have this
>>>
>>> Transcript show: 5 timesRepeat: ['something']
>>>
>>> and I need to have it like this:
>>>
>>>
>>> Transcript show: (5 timesRepeat: ['something'])
>>>
>>> the whay to work with Pharo is not:
>>>
>>> Transcript show: (5 timesRepeat: ['something']
>>>
>>> then
>>>
>>> Transcript show: (5 timesRepeat: ['something'])
>>>
>>> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>>>
>>> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>>>
>>> Cheers
>>>
>>> Mariano
>>>
>>>
>>>
>>> Ron Jeffries
>>> www.XProgramming.com
>>> www.xprogramming.com/blog
>>> New and stirring things are belittled because if they are not belittled,
>>> the humiliating question arises, "Why then are you not taking part in
>>> them?" -- H. G. Wells
>>>
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>>
>>> _______________________________________________
>>> Pharo-users mailing list
>>> Pharo-users(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Lukas Renggli
Yes, of course :-)
Lukas
On 11 May 2010 10:43, Mariano Martinez Peck <marianopeck(a)gmail.com> wrote:
>
>
> On Tue, May 11, 2010 at 10:41 AM, Lukas Renggli <renggli(a)gmail.com> wrote:
>>
>> See http://code.google.com/p/pharo/issues/detail?id=2407.
>>
>
> I thought it was Shout who did that...is ECompletion instead ?
>
>
>>
>> Lukas
>>
>> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
>> > mariano
>> >
>> > can you create a page on the book with that?
>> >
>> > Stef
>> >
>> > On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>> >
>> >>
>> >>
>> >> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org>
>> >> wrote:
>> >> Hello, Tudor. Â On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>> >>
>> >> > If I understood correctly it is about the matching of brackets and
>> >> > quotes. In this regard, the completion behaves exactly like TextMate.
>> >>
>> >> > So, why is this a bug?
>> >>
>> >> How do you manage to type a single quote in TextMate? Does that work
>> >> in Pharo?
>> >>
>> >>
>> >> Good question. But I don't know. This "feature" is from the package
>> >> Shout that is installed in Pharo dev images. If you take a PharoCore for
>> >> example, it doesn't happen.
>> >>
>> >> I keep winding up with too many right parens. It is possible that I
>> >> am typing too many. My suspicion is that Pharo is providing too
>> >> many.
>> >>
>> >> This is how it works:
>> >>
>> >> 1) when you type the LEFT side of: Â { , [ Â , ( , " , ' Â Â etc .... it
>> >> will AUTOMATICALLY open the other pair. This is because this is usually the
>> >> case: you open the left one, you will probably need to open the right one.
>> >>
>> >> 2) when you type the RIGHT side, it only writes the right side.
>> >>
>> >> 3) When you remove a left side of the two recently created ( like 1) )
>> >> , just after creating it, it removes both of them: left and right
>> >>
>> >>
>> >> Let me remark something. The style to work with this tool, is not to go
>> >> to left, type, then go to right, and type. I mean, suppose I have  this
>> >>
>> >> Transcript show: 5 timesRepeat: ['something']
>> >>
>> >> and I need to have it like this:
>> >>
>> >>
>> >> Transcript show: (5 timesRepeat: ['something'])
>> >>
>> >> the whay to work with Pharo is not:
>> >>
>> >> Transcript show: (5 timesRepeat: ['something']
>> >>
>> >> then
>> >>
>> >> Transcript show: (5 timesRepeat: ['something'])
>> >>
>> >> The idea is that you FIRST select the code you want, and then, you
>> >> press the LEFT side of what you want. In that case, you select "5
>> >> timesRepeat: ['something']" and with that selected you press "(" . And the
>> >> same with all those characters.
>> >>
>> >> It is difficult to explain by chat hahahaha. I think they are very very
>> >> useful, but you have to get use to. When I started with Pharo I was still a
>> >> java developer..so I was the whole day with Eclipse and then at night with
>> >> Pharo...and it was incredible how I was trying to work this way in Eclipse,
>> >> in gmail, in TextEdit etc hahahahha
>> >>
>> >> Cheers
>> >>
>> >> Mariano
>> >>
>> >>
>> >>
>> >> Ron Jeffries
>> >> www.XProgramming.com
>> >> www.xprogramming.com/blog
>> >> New and stirring things are belittled because if they are not
>> >> belittled,
>> >> the humiliating question arises, "Why then are you not taking part in
>> >> them?" Â -- H. G. Wells
>> >>
>> >>
>> >> _______________________________________________
>> >> Pharo-users mailing list
>> >> Pharo-users(a)lists.gforge.inria.fr
>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >>
>> >> _______________________________________________
>> >> Pharo-users mailing list
>> >> Pharo-users(a)lists.gforge.inria.fr
>> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >
>> >
>> > _______________________________________________
>> > Pharo-users mailing list
>> > Pharo-users(a)lists.gforge.inria.fr
>> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>> >
>>
>>
>>
>> --
>> Lukas Renggli
>> www.lukas-renggli.ch
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
--
Lukas Renggli
www.lukas-renggli.ch
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Mariano Martinez Peck
On Tue, May 11, 2010 at 10:41 AM, Lukas Renggli <renggli(a)gmail.com> wrote:
> See http://code.google.com/p/pharo/issues/detail?id=2407.
>
>
I thought it was Shout who did that...is ECompletion instead ?
> Lukas
>
> On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> > mariano
> >
> > can you create a page on the book with that?
> >
> > Stef
> >
> > On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
> >
> >>
> >>
> >> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org>
> wrote:
> >> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
> >>
> >> > If I understood correctly it is about the matching of brackets and
> >> > quotes. In this regard, the completion behaves exactly like TextMate.
> >>
> >> > So, why is this a bug?
> >>
> >> How do you manage to type a single quote in TextMate? Does that work
> >> in Pharo?
> >>
> >>
> >> Good question. But I don't know. This "feature" is from the package
> Shout that is installed in Pharo dev images. If you take a PharoCore for
> example, it doesn't happen.
> >>
> >> I keep winding up with too many right parens. It is possible that I
> >> am typing too many. My suspicion is that Pharo is providing too
> >> many.
> >>
> >> This is how it works:
> >>
> >> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it
> will AUTOMATICALLY open the other pair. This is because this is usually the
> case: you open the left one, you will probably need to open the right one.
> >>
> >> 2) when you type the RIGHT side, it only writes the right side.
> >>
> >> 3) When you remove a left side of the two recently created ( like 1) ) ,
> just after creating it, it removes both of them: left and right
> >>
> >>
> >> Let me remark something. The style to work with this tool, is not to go
> to left, type, then go to right, and type. I mean, suppose I have this
> >>
> >> Transcript show: 5 timesRepeat: ['something']
> >>
> >> and I need to have it like this:
> >>
> >>
> >> Transcript show: (5 timesRepeat: ['something'])
> >>
> >> the whay to work with Pharo is not:
> >>
> >> Transcript show: (5 timesRepeat: ['something']
> >>
> >> then
> >>
> >> Transcript show: (5 timesRepeat: ['something'])
> >>
> >> The idea is that you FIRST select the code you want, and then, you press
> the LEFT side of what you want. In that case, you select "5 timesRepeat:
> ['something']" and with that selected you press "(" . And the same with all
> those characters.
> >>
> >> It is difficult to explain by chat hahahaha. I think they are very very
> useful, but you have to get use to. When I started with Pharo I was still a
> java developer..so I was the whole day with Eclipse and then at night with
> Pharo...and it was incredible how I was trying to work this way in Eclipse,
> in gmail, in TextEdit etc hahahahha
> >>
> >> Cheers
> >>
> >> Mariano
> >>
> >>
> >>
> >> Ron Jeffries
> >> www.XProgramming.com
> >> www.xprogramming.com/blog
> >> New and stirring things are belittled because if they are not belittled,
> >> the humiliating question arises, "Why then are you not taking part in
> >> them?" -- H. G. Wells
> >>
> >>
> >> _______________________________________________
> >> Pharo-users mailing list
> >> Pharo-users(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >>
> >> _______________________________________________
> >> Pharo-users mailing list
> >> Pharo-users(a)lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
> >
> > _______________________________________________
> > Pharo-users mailing list
> > Pharo-users(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> >
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Lukas Renggli
See http://code.google.com/p/pharo/issues/detail?id=2407.
Lukas
On 11 May 2010 10:39, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> mariano
>
> can you create a page on the book with that?
>
> Stef
>
> On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>
>>
>>
>> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
>> Hello, Tudor. Â On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>>
>> > If I understood correctly it is about the matching of brackets and
>> > quotes. In this regard, the completion behaves exactly like TextMate.
>>
>> > So, why is this a bug?
>>
>> How do you manage to type a single quote in TextMate? Does that work
>> in Pharo?
>>
>>
>> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>>
>> I keep winding up with too many right parens. It is possible that I
>> am typing too many. My suspicion is that Pharo is providing too
>> many.
>>
>> This is how it works:
>>
>> 1) when you type the LEFT side of: Â { , [ Â , ( , " , ' Â Â etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>>
>> 2) when you type the RIGHT side, it only writes the right side.
>>
>> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>>
>>
>> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have  this
>>
>> Transcript show: 5 timesRepeat: ['something']
>>
>> and I need to have it like this:
>>
>>
>> Transcript show: (5 timesRepeat: ['something'])
>>
>> the whay to work with Pharo is not:
>>
>> Transcript show: (5 timesRepeat: ['something']
>>
>> then
>>
>> Transcript show: (5 timesRepeat: ['something'])
>>
>> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>>
>> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>>
>> Cheers
>>
>> Mariano
>>
>>
>>
>> Ron Jeffries
>> www.XProgramming.com
>> www.xprogramming.com/blog
>> New and stirring things are belittled because if they are not belittled,
>> the humiliating question arises, "Why then are you not taking part in
>> them?" Â -- H. G. Wells
>>
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>> _______________________________________________
>> Pharo-users mailing list
>> Pharo-users(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
--
Lukas Renggli
www.lukas-renggli.ch
May 11, 2010
Re: [Pharo-users] ecompletion - smart characters
by Stéphane Ducasse
mariano
can you create a page on the book with that?
Stef
On May 11, 2010, at 12:18 AM, Mariano Martinez Peck wrote:
>
>
> On Tue, May 11, 2010 at 12:04 AM, Ron Jeffries <ronjeffries(a)acm.org> wrote:
> Hello, Tudor. On Monday, May 10, 2010, at 5:38:07 PM, you wrote:
>
> > If I understood correctly it is about the matching of brackets and
> > quotes. In this regard, the completion behaves exactly like TextMate.
>
> > So, why is this a bug?
>
> How do you manage to type a single quote in TextMate? Does that work
> in Pharo?
>
>
> Good question. But I don't know. This "feature" is from the package Shout that is installed in Pharo dev images. If you take a PharoCore for example, it doesn't happen.
>
> I keep winding up with too many right parens. It is possible that I
> am typing too many. My suspicion is that Pharo is providing too
> many.
>
> This is how it works:
>
> 1) when you type the LEFT side of: { , [ , ( , " , ' etc .... it will AUTOMATICALLY open the other pair. This is because this is usually the case: you open the left one, you will probably need to open the right one.
>
> 2) when you type the RIGHT side, it only writes the right side.
>
> 3) When you remove a left side of the two recently created ( like 1) ) , just after creating it, it removes both of them: left and right
>
>
> Let me remark something. The style to work with this tool, is not to go to left, type, then go to right, and type. I mean, suppose I have this
>
> Transcript show: 5 timesRepeat: ['something']
>
> and I need to have it like this:
>
>
> Transcript show: (5 timesRepeat: ['something'])
>
> the whay to work with Pharo is not:
>
> Transcript show: (5 timesRepeat: ['something']
>
> then
>
> Transcript show: (5 timesRepeat: ['something'])
>
> The idea is that you FIRST select the code you want, and then, you press the LEFT side of what you want. In that case, you select "5 timesRepeat: ['something']" and with that selected you press "(" . And the same with all those characters.
>
> It is difficult to explain by chat hahahaha. I think they are very very useful, but you have to get use to. When I started with Pharo I was still a java developer..so I was the whole day with Eclipse and then at night with Pharo...and it was incredible how I was trying to work this way in Eclipse, in gmail, in TextEdit etc hahahahha
>
> Cheers
>
> Mariano
>
>
>
> Ron Jeffries
> www.XProgramming.com
> www.xprogramming.com/blog
> New and stirring things are belittled because if they are not belittled,
> the humiliating question arises, "Why then are you not taking part in
> them?" -- H. G. Wells
>
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
May 11, 2010
Re: [Pharo-users] Getting back the old fonts
by Mariano Martinez Peck
I don't know, can you try evaluating:
StrikeFont installDejaVu
Maybe Henrik can help you.
Cheers
Mariano
ps: what are you doing wake up at this argentinian time ? ;)
On Tue, May 11, 2010 at 9:59 AM, Hernán Morales Durand <
hernan.morales(a)gmail.com> wrote:
> Hi Mariano
>
> 2010/5/11 Mariano Martinez Peck <marianopeck(a)gmail.com>:
> >
> >
> > On Tue, May 11, 2010 at 6:07 AM, Hernán Morales Durand
> > <hernan.morales(a)gmail.com> wrote:
> >>
> >> Hi all,
> >>
> >> I would like to get back the old fonts in my Pharo image (please see
> >> attachment), any tips or script?
> >
> > Which are the old ? TrueType ? or what it was before TrueType (what it
> is
> > in core)?
> >
>
> I don't know their name, they were included by default in PharoCore
> 0.1 and earlier 1.0 images (see the attached screenshot). I have a
> really slow machine and with those fonts there were a really good
> performance.
>
> Hernán
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
May 11, 2010
Re: [Pharo-users] Getting back the old fonts
by Hernán Morales Durand
Hi Mariano
2010/5/11 Mariano Martinez Peck <marianopeck(a)gmail.com>:
>
>
> On Tue, May 11, 2010 at 6:07 AM, Hernán Morales Durand
> <hernan.morales(a)gmail.com> wrote:
>>
>> Hi all,
>>
>> I would like to get back the old fonts in my Pharo image (please see
>> attachment), any tips or script?
>
> Which are the old ?  TrueType ? or what it was before TrueType (what it is
> in core)?
>
I don't know their name, they were included by default in PharoCore
0.1 and earlier 1.0 images (see the attached screenshot). I have a
really slow machine and with those fonts there were a really good
performance.
Hernán
May 11, 2010
Re: [Pharo-users] Getting back the old fonts
by Mariano Martinez Peck
On Tue, May 11, 2010 at 6:07 AM, Hernán Morales Durand <
hernan.morales(a)gmail.com> wrote:
> Hi all,
>
> I would like to get back the old fonts in my Pharo image (please see
> attachment), any tips or script?
>
Which are the old ? TrueType ? or what it was before TrueType (what it is
in core)?
To put TrueType again, be sure to have the Dejavu fonts and then evaluate:
| font codeFont titleFont |
FreeTypeFontProvider current updateFromSystem.
font := LogicalFont familyName: 'DejaVu Sans' pointSize: 10.
codeFont := LogicalFont familyName: 'DejaVu Sans Mono' pointSize: 9.
titleFont := LogicalFont familyName: 'DejaVu Sans' pointSize: 11.
Preferences
setListFontTo: font;
setMenuFontTo: font;
setCodeFontTo: codeFont;
setButtonFontTo: font;
setSystemFontTo: font;
setWindowTitleFontTo: titleFont.
Now what I don't know is how to come back to the fonts that were in the
kernel, I mean, how to disable TrueType fonts. Someone know ?
Cheers
Mariano
Cheers,
>
> Hernán
>
> _______________________________________________
> Pharo-users mailing list
> Pharo-users(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>
May 11, 2010