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

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


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
>
>



More information about the R-SIG-Mac mailing list