Auto-intendation and RTrim - 2 IDE-plugins
Auto-intendation and RTrim - 2 IDE-plugins
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.
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.
-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer
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...
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...
-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer
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:
I expected the plugin would change it to this:
It does seem to do something because the IDE shows that the file has been changed but I do not see any changes.
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
Code: Select all
If test = 0
test = 10
EndIf
Thanks
Truth Seeker
Truth Seeker
it works, my config:


PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer
-
- Enthusiast
- Posts: 767
- Joined: Sat Jan 24, 2004 6:56 pm
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...
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...
-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer
check pb ide docs, it states that to include SPACES in filenames / paths it is a wise thing to add quotes around parameters passed
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer
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
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
-
- Enthusiast
- Posts: 145
- Joined: Tue Mar 01, 2005 8:41 pm
- Location: Near a Computer