Skip to content

[R-gui] NEdit Highligth patterns for R

4 messages · Ernesto Jardim, Peter Dalgaard, Dan Putler

#
--=-yevhV/QZg6n7BWzMpjqK
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi

I've just submitted to the NEdit development team a R highligth patterns
for NEdit (www.nedit.org).

NEdit is a text editor for LINUX which I use to write small R functions.
In my opinion is a very good tool for small scripts, maybe for huge
projects is not the best.

I'm attaching the R-5.1.pats file so you can try it. 

As usual contributions and comments are welcome.

Regards

EJ 



--=-yevhV/QZg6n7BWzMpjqK
Content-Disposition: attachment; filename=R-5.1.pats
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=R-5.1.pats; charset=ISO-8859-1

!=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
!
! Syntax Highlighting Patterns for R
! by Ernesto Jardim, ernesto@ipimar.pt
! version: 1.0
!
! Configuring NEdit to use a new pattern set:=20
!=20
! * Close your NEdit sessions=20
! * Start an NEdit session using the import command line option with the pa=
ttern you downloaded:=20
!=20
!   # nedit -import R-5.1.pats
!=20
! * Go into the recognition patterns dialog (Preferences>Default Settings>S=
yntax Highlighting>Recognition Patterns...) and verify that the patterns ar=
e imported=20
! * Use Preferences>Save Defaults... to store the modifications.=20
!=20
! * This version has been verified with the following versions on NEdit
!  - 5.1
!
!=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

nedit.highlightPatterns: \n\
R:1:0{\n\
Note:"#!":"$"::Note::\n\
Comment:"#":"$"::TextComment::\n\
Keyword:",|<(return|if|then|else|in|switch|while|for|function|do|done)>":::=
Keyword::D\n\
Loop and Equation:"\\[|\\]|\\(|\\)|\\{|\\}|\\<-|,":::Loop and Equation::\n\
Operators:"!|~|:|\\^|\\*|%|\\<|\\>|=3D=3D|\\>=3D|\\<=3D|&|\\$|-|=3D|\\+|""|=
/":::Operators::\n\
}
nedit.languageModes: 	R:.q .r .R::::::
nedit.styles: Note:darkRed:Italic\n\
TextComment:darkBlue:Italic\n\
Loop and Equation:darkRed:Bold\n\
Operators:darkGreen:Bold\n\

--=-yevhV/QZg6n7BWzMpjqK--
#
Ernesto Jardim <ernesto@ipimar.pt> writes:
Actually, it would appear to be available for Win32 and MacOSX as
well. (Personally I'm still hooked on Emacs though, and would likely
be driven nuts by an editor that has a different interpretation of
things like Ctrl-A...)
#
Hi

It's true, you can use NEdit in windows with cygwin. I just don't like
these "emulation" environments.

Regards

EJ
On Thu, 2002-10-10 at 12:40, Peter Dalgaard BSA wrote:
#
Hi All,

Zed Shaw has written an R/S context highlighter for JEdit (www.jedit.org), an open source text editor written in Java (no need for Cygwin, and it runs on Macs as well).  The URL to the highlighter is http://community.jedit.org/modules.php?op=modload&name=downloads&file=index&req=getit&lid=217

Dan
  

*********** REPLY SEPARATOR  ***********
On 10/10/2002 at 2:24 PM Ernesto Jardim wrote:

            
_________________________________________
Dan Putler
UBC Commerce
Email: putler dot commerce dot ubc dot ca
Phone: 604-822-8329