Page 1 of 1

Can you add Toolbar buttons? Turn off highlighting?

Posted: Tue Dec 14, 2010 2:37 am
by Tenaja
Can you add toolbar buttons for non-menu items?
Can you disable the syntax highlighting for a specific file or filetype?

I'm editing a text file that's not pb, then processing it with a pb program. It would be easiest to use the pb editor. After editing it, I want to hit a button that saves the current text file, then runs the other different pb program. (And also preferably reloads another file.)

Do I need a plugin for this, or can I do it with a shortcut script? If I need a plugin, can someone recommend a simple one that will be close?

BTW, is there a plugin forum? If not, there should be!

Thanks!

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Tue Dec 14, 2010 4:28 pm
by IdeasVacuum
Depends on the nitty gritty details but I would say that the IDE isn't really strong as a text editor - try NotePad++ or UltraEdit, both can run your PB App (exe) to process the text file.

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Tue Dec 14, 2010 6:16 pm
by Trond
The IDE is unsuitable as a general-purpose editor.

When adding a toolbar button you can select between "menu item" or "run tool". Depending on what you select you get a list of menu items or custom tools to select from. (The custom tools are added in the - guess what - tools menu.

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Tue Dec 14, 2010 9:51 pm
by Tenaja
Trond wrote:The IDE is unsuitable as a general-purpose editor.
I was afraid of this. I use Notepad++ for almost everything, and I do like it a lot, but it would be more convenient to use one interface. That's why I've been using the IDE...it's nice to be able to click the Run button and step through the code without switching windows.

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Tue Dec 14, 2010 10:16 pm
by skywalk
I agree with Trond and Tenaja.
In attempting to enhance the utility of the IDE using self-generated tools, it would be beneficial if there were a "how-to" for some basic functions.

While in the external tool...
1. Using ProgramParameter() grab:
a. windows handles of the Scintilla editor and IDE main window.
b. list of opened files.
c. and more...

2. How to navigate the IDE panes or loaded tabs?
Do I sendmessage() to the Scintilla object or some MDI window?

3. How do I get the list of available tabs?

As freak has said before, don't wait for built-in features...code them yourself in a tool.
I agree here too, just throw us a bone or 2 of instructions. :wink:

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Wed Dec 15, 2010 12:07 am
by IdeasVacuum
...yes, the point about an Ide plugin forum is a good one. There could be a sticky giving a basic how-to guide, with a working example.

Re: Can you add Toolbar buttons? Turn off highlighting?

Posted: Wed Dec 15, 2010 8:01 pm
by blueznl
Well, isn't that exactly what this specific forum is about? The PureBasic Editor? I don't think a new section is really needed, with all those posts and so on... 8)