PB IDE plugin : smart indent, remove spaces, autocompletions
download link fixed v3.1
remark : You can disable the new option 'remove extra empty lines' if you have a slow machine.
'Format whole source' will remove them too.
I think this option will be disabled by default in the next version.
remark : You can disable the new option 'remove extra empty lines' if you have a slow machine.
'Format whole source' will remove them too.
I think this option will be disabled by default in the next version.

'Custom Keywords' indentation will be based on :SofT MANiAC wrote:IDE -> "Preferences" -> Folding
it would be good to add option "Indent Folding Keywords"
Just I don't know another way to indent custom keywords
For example:Code: Select all
; now (PureBasic Editor Extension v3.0) MyKeyword <some code> EndMyKeyword ; must be MyKeyword <some code> EndMyKeyword
IDE -> "Preferences" -> Editor -> Colors -> Custom Keywords
I'll only indent if it's an End..Keyword block.
Changes for the next version
- indent toolbar button
- a new external tool entry for formatting source


[released v3.2]
- ADDED : indent custom keywords
- ADDED : autocomplete custom keywords
- ADDED : toolbar icon for formatting source
- UPDATED : installer
you have to launch the installer because I changed the source formatter
Remark :
- you can remove the toolbar icon in your 'preferences' panel.
- you can disable the source autoformatter in your 'configure tools' panel
(uncheck the 'Pure Formatter AUTO' entry)
Demo Video v3.2 : http://www.screencast.com/users/rineddy ... f7280bb9d8
- ADDED : indent custom keywords
- ADDED : autocomplete custom keywords
- ADDED : toolbar icon for formatting source
- UPDATED : installer

Remark :
- you can remove the toolbar icon in your 'preferences' panel.
- you can disable the source autoformatter in your 'configure tools' panel
(uncheck the 'Pure Formatter AUTO' entry)

Code: Select all
Class test
Method action()
Debug "POP"
EndMethod
EndClass
StartShooting()
Debug "POP"
StopShooting()

-
- Enthusiast
- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
It doesn't work for me.eddy wrote:[released v3.2]Code: Select all
Class test Method action() Debug "POP" EndMethod EndClass StartShooting() Debug "POP" StopShooting()
Also I can't install tool if is running CAV.exe (???)
POiNT.OF.PRESENCE group
-
- Enthusiast
- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
Yep,eddy wrote:Did you define your custom keywords ?
IDE -> "Preferences" -> Editor -> Colors -> Custom Keywords
Code: Select all
[CustomKeywords]
File =
Count = 22
W1 = (
W2 = )
W3 = Abstract
W4 = Class
W5 = ClassConstructor
W6 = ClassDestructor
W7 = DeleteObject
W8 = EndClass
W9 = EndClassConstructor
W10 = EndClassDestructor
W11 = EndMethod
W12 = Fixed
W13 = Flex
W14 = GetThisM
W15 = Method
W16 = MethodInit
W17 = MethodReturn
W18 = Methods
W19 = NewObject
W20 = Overwrite
W21 = StartConstruct
W22 = StopConstruct

POiNT.OF.PRESENCE group
What kind of problem do you have ?
- no custom keyword color ?
- no custom keyword indentation ?
- no custom end..keyword completion ?
- no custom keyword color ?
- no custom keyword indentation ?
- no custom end..keyword completion ?
Last edited by eddy on Wed May 14, 2008 9:18 am, edited 1 time in total.

-
- Enthusiast
- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
- no indentation ? *YES*
- no completion ? *YES*
Code: Select all
Class dgd
dfsdf
EndClass
POiNT.OF.PRESENCE group
1) Check the tool debugger option
2) Type some code lines
3) Open the tool debugger tab
4) Tell me if your tool reports your custom keyword list
2) Type some code lines
3) Open the tool debugger tab
4) Tell me if your tool reports your custom keyword list
Code: Select all
CustomKeywords : XXXXXXXXX
Last edited by eddy on Wed May 14, 2008 9:29 am, edited 2 times in total.

-
- Enthusiast
- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
Debugger window always blank in new versioneddy wrote:1) Check the tool debugger option
2) Type some code lines
3) Open the tool debugger tab
4) Tell me if your tool reports your custom keyword listCode: Select all
CustomKeywords : XXXXXXXXX

POiNT.OF.PRESENCE group
Code: Select all
No autocomplete for IF
Code: Select all
Blank Debugger output
Code: Select all
No custom keyword indent

Last edited by eddy on Wed May 14, 2008 9:39 am, edited 1 time in total.

-
- Enthusiast
- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
already.. many times.. no resulteddy wrote:I forgot this step : click "apply" or "ok" button after checking option.

my old testeddy wrote: Why does your custom keyword list contain "(" ")" ?

fixed, but no results:
Code: Select all
[CustomKeywords]
File =
Count = 20
W1 = Abstract
W2 = Class
W3 = ClassConstructor
W4 = ClassDestructor
W5 = DeleteObject
W6 = EndClass
W7 = EndClassConstructor
W8 = EndClassDestructor
W9 = EndMethod
W10 = Fixed
W11 = Flex
W12 = GetThisM
W13 = Method
W14 = MethodInit
W15 = MethodReturn
W16 = Methods
W17 = NewObject
W18 = Overwrite
W19 = StartConstruct
W20 = StopConstruct
POiNT.OF.PRESENCE group