General discussion about plugins.

Browse, download and discuss plugins for Blumentals code editors
Post Reply
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

General discussion about plugins.

Post by Aivars »

Feel free to talk here about:
  • Plugin development and howto
  • Plugin usage and experiences
  • Requests and wishes
Do not create new threads unless they contain downloadable plugin that you have developed. All discussions about a specific plugin should go in its thread. All other more general discussions should go here.

Note that plugin development help and examples can be found here: http://help.blumentals.net/webuilder/pl ... ucture.htm
Blumentals Software Programmer
User avatar
EvilBMP
Posts: 120
Joined: Thu Jan 04, 2007 1:57 am
Location: Germany

Re: General discussion about plugins.

Post by EvilBMP »

1. Is there any way to reload updated plugin code without restarting the whole editor? It's really annoying to test, if you have to restart all the time :roll:

2. Where can I find a good JScript API documentation, that is compatible to the JScript for plugins? I wanted to make use of a switch/case statement or the ternary operator, but I always got compiling errors and I don't know why :(

3. You should prescribe plugin namespaces, to prevent duplicates - in the TYPO3 universe its a common practise to use name or company credentials + plugin name, e.g. ab_custom_plugin

Regards, EvilBMP
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Post by Aivars »

1. You can disable and re-enable plugin to reload it. Note that disabling plugin does not remove its menu actions, just disables them, but that should not be a problem.

2. I can't say I have any but I'm attaching a bunch of samples that cover all control structures and common-case scenarios. Here's a sample for switch..case

Code: Select all

  switch (i)
  {
    case 1: j = 1;
    case 2..10: { j = 2; j++; }
    default: { j = 10; }
  }
3. You might be right... It would be a good idea for author to include their name or credentials in plugin's name. Name of zip file is not important, it's the name defined in plugin.ini that counts.
Attachments
JScript.zip
(4.29 KiB) Downloaded 5809 times
Blumentals Software Programmer
chechnyan
Posts: 37
Joined: Mon Oct 01, 2012 4:37 pm

Re: General discussion about plugins.

Post by chechnyan »

is it possible to have more interface style or interface themes in the future .
something darker that match the Solarized or monokai editor color scheme.
thanks .
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Post by Aivars »

It's being planned, yes. Also the best of our users are creating awesome color schemes now and then, which eventually make their way to the official release.
Blumentals Software Programmer
chechnyan
Posts: 37
Joined: Mon Oct 01, 2012 4:37 pm

Re: General discussion about plugins.

Post by chechnyan »

her is an almost identical "iplastic" theme .
i wish other like it .
Attachments
beta iplastic4.zip
iplastic color scheme.
(2.89 KiB) Downloaded 5465 times
chechnyan
Posts: 37
Joined: Mon Oct 01, 2012 4:37 pm

Re: General discussion about plugins.

Post by chechnyan »

her is another one that i think it goes nice with modern and light style
Attachments
blue.zip
Blue theme.
(2.9 KiB) Downloaded 5548 times
akuchkovsky
Posts: 2
Joined: Sun Apr 14, 2013 6:00 am

Re: General discussion about plugins.

Post by akuchkovsky »

Hello!! Can you integrate this plugin http://emmet.io ? It would be super!! I can not to guess how to do it :D
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Post by Aivars »

We are planning to integrate emmet but we have to finish some other things first.
Blumentals Software Programmer
akuchkovsky
Posts: 2
Joined: Sun Apr 14, 2013 6:00 am

Re: General discussion about plugins.

Post by akuchkovsky »

It's great!!! We will wait, thank you!
ichthys
Posts: 1
Joined: Fri Dec 20, 2013 8:10 am

Re: General discussion about plugins.

Post by ichthys »

Hello,

I would like to build my own plugin. I like the code beautifier (I think it's the english name for the php code formatting tool) but I would like to make it available via short cut or even better to automate it.
How can I run the php formatter in a plugin?

Best regards
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Post by Aivars »

The built in beautifier is not available as external executable that you could call from a plugin. You can however assign a shortcut key to Format PHP Code command via Options -> Keyboard Shortcuts.
Blumentals Software Programmer
en-cOder
Posts: 4
Joined: Wed Dec 25, 2013 1:48 am
Location: Liverpool, UK

Re: General discussion about plugins.

Post by en-cOder »

Originally I inadvertently posted this to the wrong area, so I am re-posting it here.

I am a new member to this forum and would like to know if there is a more in depth form of documentation available for the plugin classes.

I am currently developing a plugin which includes several forms for user input, but there are some commands that I want to use such as reading and writing to the plugin properties.ini file, displaying an image on the main form using TImage and TPicture, and I keep getting runtime errors presumably because the syntax I am using is incorrect. Also, passing the text contained in a TMemo field to a function for processing seems to be impossible because a TMemo field contains more than one line of text, so it doesn't have a (.Text) property that you can use to reference all of the text in the control.

I am well conversed in javascript, visual basic and html programming and have followed the links to the Embarcadero website for information on the built in classes used in WeBuilder. Although I have gleaned some useful info to get me started with creating plugins, I can't find all the info that I need to complete my plugin project.The information available at the Embarcadero web site is too none-specific to WeBuilder.

Any help from the developers or forum users would be greatly appreciated. Thank you.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: General discussion about plugins.

Post by Aivars »

The other area was fine, too :) I replied you there.
Blumentals Software Programmer
rich770
Posts: 2
Joined: Tue Apr 29, 2014 11:37 pm

Re: General discussion about plugins.

Post by rich770 »

I'm working on a "Toggle Comment" script, but having trouble with key binding. I want to bind "Ctrl + /"
I first tried to assign a shortcut key, but it doesn't seem to respond to that. (a bug)
Next I tried to make a signal to "keydown", but I'm not sure how to do a combination key, with Ctrl.
Any suggestions?

Edit: I also tried in the Script.RegisterAction part, and it still rejects "Ctrl + /".
I have my script running fine for now using another hotkey, until I figure out how to get "Ctrl + /" to work.
Last edited by rich770 on Wed Apr 30, 2014 3:33 pm, edited 1 time in total.
Post Reply