📄 bipad.xml
字号:
<?xml version="1.0"?><Application xmlns:x="http://www.w3.org/1999/xhtml"> <Window caption="Bindows Pad" width="500" height="400" allowBrowserContextMenu="true"> <Command id="preview-command" onexecute="biPad.preview()" shortcut="Alt-P"/> <Command id="increase-command" onexecute="biPad.increaseNumber(event)" shortcut="Ctrl-Up"/> <Command id="decrease-command" onexecute="biPad.decreaseNumber(event)" shortcut="Ctrl-Down"/> <Command id="color-command" onexecute="biPad.showColorPicker()"/> <Command id="cut-command" onexecute="biPad.cut(event)" shortcut="Ctrl-X" enabled="true"/> <Command id="copy-command" onexecute="biPad.copy(event)" shortcut="Ctrl-C" enabled="true"/> <Command id="paste-command" onexecute="biPad.paste(event)" shortcut="Ctrl-V" enabled="true"/> <Command id="help-command" onexecute="biPad.showHelp()"/> <Command id="about-command" onexecute="biPad.showAbout()"/> <SplitPane top="0" right="0" bottom="0" left="0" orientation="vertical" dividerLocation="200"> <VBox> <MenuBar id ="menu-bar"> <MenuButton text="File" mnemonic="F"> <Menu> <MenuItem text="Exit" enabled="false"/> </Menu> </MenuButton> <MenuButton text="Edit" mnemonic="E"> <Menu> <MenuItem id="cut-mi" text="Cut" mnemonic="t" command="cut-command" icon="images/cut.gif"/> <MenuItem id="copy-mi" text="Copy" mnemonic="C" command="copy-command" icon="images/copy.gif"/> <MenuItem id="paste-mi" text="Paste" mnemonic="P" command="paste-command" icon="images/paste.gif"/> <MenuSeparator id="clipboard-ms" /> <MenuItem text="Increase number" command="increase-command"/> <MenuItem text="Decrease number" command="decrease-command"/> <MenuSeparator/> <MenuItem text="Insert Color..." command="color-command"/> </Menu> </MenuButton> <MenuButton text="View" mnemonic="V"> <Menu> <CheckBoxMenuItem checked="true" text="Auto Preview" onchange="biPad.setAutoPreview( event.getTarget().getChecked() )"/> </Menu> </MenuButton> <MenuButton id="help-menu-button" text="Help" mnemonic="H"> <Menu> <MenuItem text="Help" mnemonic="h" command="help-command"/> <MenuItem text="Submit feedback..." mnemonic="f" onaction="document.location = 'mailto:feedback@bindows.net?subject=BiPad Feedback'"/> <MenuSeparator/> <MenuItem text="About..." mnemonic="A" command="about-command"/> </Menu> </MenuButton> </MenuBar> <ToolBar> <ToolBarButton text="Preview" mnemonic="P" command="preview-command"> <ToolBarButton.icon> <Image uri="images/preview.png" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarSeparator id="clipboard-tbs"/> <ToolBarButton id="cut-tbb" command="cut-command" toolTipText="Cut"> <ToolBarButton.icon> <Image uri="images/cut.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarButton id="copy-tbb" command="copy-command" toolTipText="Copy"> <ToolBarButton.icon> <Image uri="images/copy.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarButton id="paste-tbb" command="paste-command" toolTipText="Paste"> <ToolBarButton.icon> <Image uri="images/paste.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> </ToolBar> <TextArea id="source" font="monospace" allowTab="true" VBox.flex="1" ontextchanged="biPad.onSourceTextChanged(event);"/> </VBox> <VBox> <HBox id="infoBox" align="center" backColor="InfoBackground" border="1 solid InfoText" visible="false"> <Image uri="images/exclamation.16.png" preferredWidth="16" preferredHeight="16" margin="5"/> <Label id="errorLabel" HBox.flex="1" padding="2" wrap="true"/> </HBox> <Component id="preview" VBox.flex="1"/> </VBox> </SplitPane> <!-- the top value is a work around for Mozilla cursor bug --> <Dialog id="about-dialog" caption="About Bindows Pad" width="350" height="200" resizable="false" showMinimize="false" showMaximize="false" showIcon="false" top="-200"> <VBox left="0" right="0" top="0" bottom="0"> <Label VBox.flex="1" margin="3" wrap="true" font="12" overflow="auto" canSelect="true"> <x:h1>Bindows Pad</x:h1> <x:p>This is a simple demo application that allows you to get a live preview of the Bindows markup.</x:p> <x:p><x:a href="http://bindows.net" target="_blank">http://bindows.net</x:a></x:p> </Label> <HBox pack="center"> <Button text="Close" margin="3" onaction="application.getComponentById('about-dialog').setVisible(false)"/> </HBox> </VBox> </Dialog> </Window> <Resources> <Script src="snippets.js"/> <Snippets id="snippets" uri="snippets.xml"/> <Script src="Script.js"/> <Script src="BiPad.js"/> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -