You currently have Javascript disabled, to use some of the features (such as the login) you must enable it for this site
Will CB2 add a function to use an external editor? | Custom Buttons²

Will CB2 add a function to use an external editor?

Post your extension support questions here

Postby ithinc on Tue Mar 04, 2008 7:15 am

Hello,

I think it is rather better to use an external editor than to enhance the CB2 Edit Dialog. Here I find an userChrome.js script, which can enable the CB2 to use an external editor. Share it with you.

http://space.geocities.jp/alice0775/STO ... hook.uc.js
http://space.geocities.jp/alice0775/STO ... edit.uc.js

You need to adjust the path of your external editor in the second file.
When CB2 Edit Dialog is opened, a middle click in the code box will create a tmp file and open the external editor. When focusing back to CB2 Edit Dialog, your code box will be synchronized and the tmp file be removed.
ithinc
Registered User
Registered User
 
Posts: 67
Joined: Thu Feb 21, 2008 8:22 pm

Postby SCClockDr on Tue Mar 04, 2008 1:58 pm

Hi ithinc

    A call to an external editor is not planned at this time but options always being evaluated.
    Thank you for sharing the scripts.
  • For those new to this concept would you please post a step by step on how and where to install the scripts and any additional software that may be required?
    I'm sure many will be thankful.

    For my own personal use I use the DeCompile/Compile button with jEdit for button coding.
  • I install 2 so I have a DeCompile and a Compile button side by side
    1. Select "Copy to Clipboard" of the button to edit (target)
    2. Click DeCompile
    3. Paste the clipboard into a new buffer
    4. Edit
    5. Copy All to Clipboard
    6. Click Compile
    7. Select "Update Button" for the target button
    8. The target button ready for testing.
  • This method provides the added benefits of:
    • Supplying all the button parameters to the editor.
    • Shortens the cycle to, Edit, Compile, & Test
    • Source of the entire button can be saved for later development/modification
Regards
George
User avatar
SCClockDr
Admin
Admin
 
Posts: 844
Joined: Thu Jun 14, 2007 7:28 pm
Location: SC UpState


Return to Support

Who is online

Users browsing this forum: • Registered: 0 and 0 guests