Re: [gedit-list] Commenting code, how to do that...
- From: Petar Milin <pmilin ff uns ac rs>
- To: Paolo Borelli <pborelli katamail com>
- Cc: gedit-HELP <gedit-list gnome org>
- Subject: Re: [gedit-list] Commenting code, how to do that...
- Date: Mon, 30 Mar 2009 09:07:44 +0200
Thanks so much!
Can you, please, just point me to what needs to be changed in
On Sun, 2009-03-29 at 20:05 +0200, Paolo Borelli wrote:
> Il giorno dom, 29/03/2009 alle 17.35 +0200, Petar Milin ha scritto:
> > Hello!
> > I am using Gedit 2.22.3 with gtksourceview-2.0 in Debian testing.
> Ok, this explains it. That old versions only supports the commenting
> feature for a small set of languages. If you want to add support for R
> you need to edit the codecomment.py file of the plugin.
> Newer versions support R (and any langauge with a proper lang file)
> > Yes, R is selected under View->Syntax_Highlight.
> > No, Commenting is not working.
> > Although highlighting is alive and colorful. I must manually put '#'
> > in front of a line and, eventually, to
> > copy&paste. I cannot use <CTRL><ALT>C or Edit->Comment.
> > Best,
> > PM
> > On Sun, Mar 29, 2009 at 3:44 PM, Paolo Borelli <pborelli katamail com>
> > wrote:
> > Il giorno sab, 28/03/2009 alle 11.53 +0100, Petar Milin ha
> > scritto:
> > > Hi!
> > > I wonder how to manage automatic code commenting for R
> > language. There
> > > is nice auto-commenting/uncommenting option in Edit menu. It
> > works in
> > > Python, or LaTeX, but not in R. How can I add that? Comment
> > in R is '#'.
> > >
> > The information about how to comment a block is taken from the
> > corresponding gtksourceview lang file (R.lang in this case).
> > As far as I can see R.lang contains:
> > ...
> > <property name="line-comment-start">#</property>
> > ...
> > So it should work.
> > Which version of gedit and gtksourceview are you using? Can
> > you check
> > from the View->Syntax Highlighting menu that the R syntax
> > highlighting
> > mode is actually activated?
> > Paolo
> > > Thanks!
> > > PM
> > >
> > > _______________________________________________
> > > gedit-list mailing list
> > > gedit-list gnome org
> > > http://mail.gnome.org/mailman/listinfo/gedit-list
> > >
][Date Next] [Thread Prev