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
-------------- next part --------------
!============================================================================!
! Syntax Highlighting Patterns for R
! by Ernesto Jardim, ernesto at ipimar.pt
! version: 1.0
!
! Configuring NEdit to use a new pattern set:
!
! * Close your NEdit sessions
! * Start an NEdit session using the import command line option with the pattern
you downloaded:
!
! # nedit -import R-5.1.pats
!
! * Go into the recognition patterns dialog (Preferences>Default
Settings>Syntax Highlighting>Recognition Patterns...) and verify that the
patterns are imported
! * Use Preferences>Save Defaults... to store the modifications.
!
! * This version has been verified with the following versions on NEdit
! - 5.1
!
!============================================================================
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:"!|~|:|\\^|\\*|%|\\<|\\>|==|\\>=|\\<=|&|\\$|-|=|\\+|""|/":::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\
Ernesto Jardim <ernesto at ipimar.pt> writes:> > 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.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...) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._