Plugin: Preview Tabs

Browse, download and discuss plugins for Blumentals code editors

Plugin: Preview Tabs

Postby Aivars » Wed Mar 06, 2013 11:22 am

Adds actions for changing preview tabs (Editor / Preview / Horizontal Split / Vertical Split) in menu. You can then assign keyboard shortcuts to these actions and switch between Preview and Editor without using mouse.
Attachments
preview tabs.zip
(537 Bytes) Downloaded 618 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Preview Tabs

Postby Aivars » Wed Mar 06, 2013 11:22 am

Code to use as an example:

Code: Select all
function TabEditor(Sender) {
  Document.PreviewTabIndex = 0;
}

function TabPreview(Sender) {
  Document.PreviewTabIndex = 1;
}

function TabHoriz(Sender) {
  Document.PreviewTabIndex = 2;
}

function TabVert(Sender) {
  Document.PreviewTabIndex = 3;
}

Script.RegisterDocumentAction("Change Preview Tab", "Editor", "", &TabEditor);
Script.RegisterDocumentAction("Change Preview Tab", "Preview", "", &TabPreview);
Script.RegisterDocumentAction("Change Preview Tab", "Horizontal Split", "", &TabHoriz);
Script.RegisterDocumentAction("Change Preview Tab", "Vertical Split", "", &TabVert);
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Preview Tabs

Postby chechnyan » Wed Mar 06, 2013 11:27 am

fully functional now i am fully mouse free.
really appreciate it .
thank you.
chechnyan
 
Posts: 37
Joined: Mon Oct 01, 2012 4:37 pm


Return to Plugins for HTMLPad / Rapid CSS / Rapid PHP / WeBuilder

Who is online

Users browsing this forum: No registered users and 7 guests