|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
02-09-2009 20:23
Ok, I personally don't like K&R style when I'm coding, and I accidently set that when I picked up the properties style for scite-lsl. I'm wondering is there a way to set it to do the other style:
if(x == 2) { }
I can't seem to find the setting in the global options.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-09-2009 21:52
Under "Options" open cpp.properties. hit ctrl f and enter astyle into the search box. You should have around line #278 this: command.0.$(file.patterns.cpp)=astyle What does it say after that text? Default reads like this: command.0.$(file.patterns.cpp)=astyle -tapOK -M8 $(FileNameExt) K&R will read something like this: command.0.$(file.patterns.cpp)=astyle --style=kr -s2 -o $(FileNameExt) Take a look at my user page: http://wiki.secondlife.com/wiki/User:Jesse_Barnett/Scitewoefully incomplete and never finished but I have some Scite stuff and a link to Strife's page which has links to "Indent", a whitespace stripper, clipboard etc. You can set every variable possible with Indent, which is a code beautifier.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
02-09-2009 22:33
command.0.*.cxx=astyle -tapO $(FileNameExt) is what it reads right now, I tried adding in what you said, still didn't work. It's kind of annoying to have scite set up how I like it, and then have it suddenly switch to K&R style on me  I know it's a small thing, but when you've been trained one way, hard to switch to another.. and don't know why it suddenly switched. Ok, I solved it by reinstalling Scite, and only copying the lsl.properties file and api file.. but I do have another question, is there a way to tell it, when I go to open a file to open in a certain directory, in my case C:\LSL\
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-10-2009 19:47
From: Lazink Maeterlinck command.0.*.cxx=astyle -tapO $(FileNameExt) is what it reads right now, I tried adding in what you said, still didn't work. It's kind of annoying to have scite set up how I like it, and then have it suddenly switch to K&R style on me  I know it's a small thing, but when you've been trained one way, hard to switch to another.. and don't know why it suddenly switched. Ok, I solved it by reinstalling Scite, and only copying the lsl.properties file and api file.. but I do have another question, is there a way to tell it, when I go to open a file to open in a certain directory, in my case C:\LSL\ Not for sure on setting a default directory but you can set it so that any pages you have open, open again whenever you start Scite. It will look for the directory of the page you have active when you hit Open. For example if your active page is C:\LSL\Teleporters\mt_tp.lsl, then C:\LSL\Teleporters directory will open. You might also want to join the Scite mailing list, Neil Hodgens and gang are pretty good about answering questions.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|