[R-SIG-Mac] built-in editor underlining

Simon Urbanek simon.urbanek at r-project.org
Sun Sep 17 16:42:35 CEST 2006


Jörg,

On Sep 17, 2006, at 8:53 AM, Jörg Beyer wrote:

> Hello Parlamis,
>
> a tip regarding syntax highlighting you may (or may not ;-) find  
> useful: I'm using BBEdit 7.1 to edit my R-files. Of course, as a  
> specialized tool, it is far superior compared with R.app's built-in  
> editor

Could you, please, elaborate more on that? I'm sure BBedit doesn't  
have argument hints, auto-completion etc. (features I like - but then  
that's why implemented them ;)), so I'm really curious what it can  
offer that R.app doesn't (I'm a bit surprised to hear such comparison  
with BBedit, because there are much better editors out there - but  
editors are always a matter of taste ;)). R.app *is* intended to be  
"a specialized tool" exactly for that purpose - working with R  
scripts. The only way we can figure out what users want is when they  
tell us (as every one has different workflow habits), so please share  
your thoughts with us. Even if the improvements won't necessarily  
make you switch, they can be valuable for other users.

Thanks,
Simon


> (no insult
> intended). My workflow of editing-sourcing-editing is quite  
> comfortable --
> whether you switch to an internal or an external editor window  
> makes no
> difference.
>
> I set the syntax coloring to Tcl, which gives a quite reasonable
> highlighting of R/S code. And hopefully someone comes up with a  
> special
> language module in the future. The current version of BBEdit is  
> 8.5, and if
> you don't need all its refinements, you can use their free  
> TextWrangler,
> which has pretty much the same basic functionality.
>
> Hope that helps
> (not sure, though :-)
>
> Jörg
>
>
> On Sep 17, 2006, at 9:05 PM, Parlamis Franklin wrote:
>
>> Thanks, Simon.  Of course I don't think you should do anything that
>> would prohibit sourcing the file (and I guess most would agree).
>>
>> Re: syntax coloring.  I've turned it off because, when editing the
>> beginning of a long file, I would get a long delay (multiple seconds)
>> after I entered an open quotes (") as the rest of the document
>> changed color because all quotes were now matched differently.  Not
>> sure whether this is a slow implementation of that functionality, or
>> what is to done about it, but for this user at least, the delay issue
>> outweighs any benefit that I could get from syntax coloring.
>>
>> Franklin
>>
>> On Sep 16, 2006, at 4:52 PM, Simon Urbanek wrote:
>>
>>> The build-in editor doesn't store any text attribute changes as the
>>> output is plain text. It does, however, allow text attribute
>>> changes, because they are used e.g. for syntax highlighting.
>>> Strictly speaking the bug is that you can use the <Cmd><U> command
>>> at all.
>>>
>>> Another approach would be to enhance the editor to support RTF
>>> format (internally it actually does allow it) which would allow you
>>> to use formatted text and store it. The drawback is that such a
>>> text is no longer executable directly in R, so you couldn't
>>> "source" it. I not quite sure what is more useful - I'm almost
>>> inclined to think that banning text format changes makes more
>>> sense, but I'm open to other suggestions...
>>>
>>> Cheers,
>>> Simon
>>>
>>> On Sep 15, 2006, at 8:53 PM, Parlamis Franklin wrote:
>>>
>>>> if i open a blank document in the built-in editor and enter the
>>>> following text:
>>>>
>>>> Help
>>>>
>>>> Help
>>>>
>>>> and then underline the first "Help" (by highlighting it, and using
>>>> either Meta-U  or Format>Font>Underline), the underlining will show
>>>> up in my current session.  but if i save the document and reopen  
>>>> it,
>>>> the underlining will be gone.  what is more, if i then open the
>>>> document in another text editor (try TextEdit), highlight the first
>>>> help and try to underline it, everything in the document will be
>>>> underlined, including the second "Help"
>>>>
>>>> i've been using 2.4.0 alpha (about a week old) and the R.app
>>>> deployment build (Version 1.17-pre (3779)) for R 2.4.x from http://
>>>> cran.cnr.berkeley.edu/
>>>>
>>>> franklin parlamis
>>>>
>>>>> version
>>>>                 _
>>>> platform       powerpc-apple-darwin8.7.0
>>>> arch           powerpc
>>>> os             darwin8.7.0
>>>> system         powerpc, darwin8.7.0
>>>> status         alpha
>>>> major          2
>>>> minor          4.0
>>>> year           2006
>>>> month          09
>>>> day            06
>>>> svn rev        39158
>>>> language       R
>>>> version.string R version 2.4.0 alpha (2006-09-06 r39158)
>>>>
>>>> _______________________________________________
>>>> R-SIG-Mac mailing list
>>>> R-SIG-Mac at stat.math.ethz.ch
>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>
>>>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list