[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use Different Editor
From: |
Kevin Goodspeed |
Subject: |
Re: Use Different Editor |
Date: |
Mon, 4 Feb 2008 22:50:55 -0500 |
I think I can change the editor by editing the file octaverc located
in C:\Program Files\Octave\Share\octave\3.0.0\m\startup\. (Thanks
Tatsuro, your help file told me of octaverc.) Here's the section I
think I can modify, I just don't know the syntax/language to make the
necessary adjustments:
# Load editor settings
if (exist ("edit"))
scite_path = sprintf ("%s%stools%swscite", octave_config_info
("prefix"), filesep, filesep);
if (exist (scite_path, "dir"))
EDITOR (sprintf ("%s%sSciTE.exe", scite_path, filesep));
edit ("mode", "async");
fprintf (" - SciTE editor installed. Use `edit' to start the editor.\n");
endif
home_path = edit ("get", "HOME");
if (exist (home_path, "dir") != 7)
if (! mkdir (home_path))
warning ("unable to create directory `%s'", home_path);
else
fprintf (" - Created directory `%s'\n", home_path);
endif
endif
endif
I know if I installed Notepad++ into C:\Program Files\Octave\Tools\ I
could probably make it work just fine, but I'd rather leave it in
C:\Program Files\Notepad++\. I believe it's the third line that's
giving me problems:
scite_path = sprintf ("%s%stools%swscite", octave_config_info
("prefix"), filesep, filesep);
- CircuitsMan
On Feb 4, 2008 6:33 PM, Kevin Goodspeed <address@hidden> wrote:
> I did as you suggested and it works okay, except the next time I open
> Octave, it defaults back to SciTE. How do I make it permanent?
>
> - CircuitsMan
>
>
> On Feb 4, 2008 12:30 AM, Michael Goffioul <address@hidden> wrote:
> > On 2/3/08, Kevin Goodspeed <address@hidden> wrote:
> > > I don't understand what your telling me to do. I read the help file
> > > on edit and it didn't really tell me anything. I found the edit.m
> > > file, but I don't understand the changes you suggest I make.
> >
> > What I meant is that you can read the documentation of a function
> > by typing "help function_name" at octave prompt. If you do that
> > for "edit" (that is "help edit"), you should read that you can see
> > what is the current editor used by octave through "edit get editor"
> > and that you can change it through "edit editor new_editor_value".
> >
> > > BTW, I'm using Windows XP and if I can, I'd like to change the editor
> > > to Notepad++.exe.
> > > C:\Program Files\Notepad++\notepad++
> >
> > Type the following at octave prompt:
> >
> > edit editor 'C:\\Program Files\\Notepad++\\notepad++.exe %s'
> >
> > Michael.
> >
>
- Use Different Editor, Kevin Goodspeed, 2008/02/03
- Re: Use Different Editor, Michael Goffioul, 2008/02/03
- Re: Use Different Editor, Kevin Goodspeed, 2008/02/03
- Re: Use Different Editor, Michael Goffioul, 2008/02/04
- Re: Use Different Editor, Kevin Goodspeed, 2008/02/04
- Re: Use Different Editor,
Kevin Goodspeed <=
- Re: Use Different Editor, John W. Eaton, 2008/02/04
- Re: Use Different Editor, Michael Goffioul, 2008/02/05
- Re: Use Different Editor, KG, 2008/02/05
- Re: Use Different Editor, KG, 2008/02/05
- Re: Use Different Editor, Tatsuro MATSUOKA, 2008/02/04