Can you add Toolbar buttons? Turn off highlighting?

Working on new editor enhancements?
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Can you add Toolbar buttons? Turn off highlighting?

Post 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!
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

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

Post 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.
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

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

Post 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.
User avatar
skywalk
Addict
Addict
Posts: 3999
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post 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:
Last edited by skywalk on Mon Jul 07, 2014 11:34 pm, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

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

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

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

Post 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)
( 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... )
Post Reply