How to save settings to a file

Discussion Forums discussion How to save settings to a file

This topic contains 0 voices and has 5 replies.

Viewing 6 posts - 1 through 6 (of 6 total)
Author Posts
Author Posts
July 27, 2006 at 9:11 am #89

codebase
Member

I like this editor and i plan to use it for my own programming language. I plan also to add this editor to the download-files.

The problem what i see is, that i can’t save some settings to a file and add this to the package.

For example: i define few custom commands/shortcuts for compiling. But when someone download this package – he

must again set this settings.

Other Settings: default scheme, line numbers…

http://sourceforge.net/tracker/index.php?func=detail&aid=1529543&group_id=45545&atid=443222

July 27, 2006 at 9:26 am #15042

codebase
Member

hm i found some setup-files inside windows-settings-directory inside

“C:Dokumente und EinstellungenuserAnwendungsdatenEcho SoftwarePN2″

(i have german windows)

but it would be nicer when all settings are moved to app-dir

July 27, 2006 at 10:55 am #15043

simon
Key Master

For tools you can place a file just like UserTools.xml in your pn2tools directory for shipping. For options you can set default scheme, line numbers etc. in the registry, or you can use the .ini settings support in the next version of PN2.

July 27, 2006 at 12:39 pm #15044

codebase
Member

cool this works… but is here a way to run a exe from a relative path (relative to PN2!):

../bin/compiler.exe

i see that it work, when a file is “unsaved”, but this don’t work when i open a file from a path…

PN2 set the path to opened file

Is here a way to set PN2-home path?

July 27, 2006 at 12:57 pm #15045

simon
Key Master

Good question, there’s no current magic character for getting the PN path, but I can easily add one to the next version which would do the trick.

July 29, 2006 at 11:38 am #15046

codebase
Member

cool – thanks to you

in edit-tool we could use %a as a special symbol for pn2 current dir (%a=appdir)

so that i can write this into command-inputbox:

%a..bincompiler.exe

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.