Page 1 of 2

Auto-intendation and RTrim - 2 IDE-plugins

Posted: Fri Oct 14, 2005 3:22 pm
by Hurga
I wrote two small plugins for the new IDE. Mainly cos I miss these functions (I have to confess that I´m a jaPBe -fan...)
There are s small how to install in the zip.files. Its in german, but with a pic, so this should be no prob to understand and to install...
(Its mainly for the arguments)

Here are the links.

http://dostej.pureforge.net/Files/Auto% ... dation.zip

and

http://dostej.pureforge.net/Files/RTrim.zip
both are about 18k

Hope you can make use of it.

Posted: Fri Oct 14, 2005 11:02 pm
by thefool
Hi!
I cant get the auto indent to work :S

Posted: Fri Oct 14, 2005 11:03 pm
by Comtois
same for me :?

Posted: Mon Oct 17, 2005 2:15 pm
by Hurga
What is the problem?
Can you install the plugin ?
Does it do anything?

Posted: Tue Oct 18, 2005 6:20 am
by Truth_Seeker
The Indent Plugin does not do anything, I followed the instructions in the Doc file.

Posted: Tue Oct 18, 2005 9:23 am
by Hurga
Hm, really strange. It works fine with me.

Some things that can be the fault...

You use not the newest release of the IDE
You used the plugin with an unsaved source (means you have to save the sourece first, otherwise the plugin isnt working)
You had a selection in the source

Otherwise I had no idea why it is not working...

Posted: Tue Oct 18, 2005 5:32 pm
by Truth_Seeker
I am using the latest IDE, just did a update to be sure.
The source was saved.
I had no selection in the source.

I tried both with and without a selection.

The code I was trying to indent was this:

Code: Select all

If test = 0
test = 10
EndIf
I expected the plugin would change it to this:

Code: Select all

If test = 0
  test = 10
EndIf
It does seem to do something because the IDE shows that the file has been changed but I do not see any changes.

Posted: Tue Oct 18, 2005 5:41 pm
by ts-soft
it works, my config:

Image

Posted: Tue Oct 18, 2005 5:47 pm
by Truth_Seeker
Intresting it works now with the %FILE being inside the double quotes. I dont understand why though.

Posted: Tue Oct 18, 2005 10:34 pm
by dell_jockey
Hurga,

thanks a lot for this utility. Your documentation states, that you don't know what happens if you select/mark the entire source code.

Well, if you just use your tool without selecting any text, it indents the text with an indent size of two spaces.
If you select the entire text and start the your tool, it does the same, but indents with an indent size of four spaces...

Posted: Tue Oct 18, 2005 11:17 pm
by Truth_Seeker
Hurga thanks for this tool.

Posted: Wed Oct 19, 2005 1:44 pm
by blueznl
check pb ide docs, it states that to include SPACES in filenames / paths it is a wise thing to add quotes around parameters passed

Posted: Wed Oct 19, 2005 5:33 pm
by Truth_Seeker
blueznl wrote:check pb ide docs, it states that to include SPACES in filenames / paths it is a wise thing to add quotes around parameters passed
Thanks.

Posted: Fri Oct 21, 2005 9:39 am
by Hurga
Thx
I´m happy if someone can use it.

If someone is interested in the code, it sould be downloadable forme here...

http://dostej.pureforge.net/Files/PB%20 ... Source.zip

But beware: Its not ... hm lets say... very structured

Posted: Fri Oct 21, 2005 11:25 pm
by Truth_Seeker
Thanks for letting us see the source.