Revision: 350
Author: todd.chambery
Date: Tue Oct 6 04:10:39 2009
Log: jedit properties and macros
http://code.google.com/p/charactermanager/source/detail?r=350
Added:
/trunk/charmgrjs/resources/jedit
/trunk/charmgrjs/resources/jedit/D&D_Fixup.bsh
/trunk/charmgrjs/resources/jedit/Embolden.bsh
/trunk/charmgrjs/resources/jedit/Italicize.bsh
/trunk/charmgrjs/resources/jedit/Remove_newline_in_selection.bsh
/trunk/charmgrjs/resources/jedit/Table cell-ify.bsh
/trunk/charmgrjs/resources/jedit/properties
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/D&D_Fixup.bsh Tue Oct 6 04:10:39 2009
@@ -0,0 +1,67 @@
+// This is a recorded macro. First, check over the
+// commands to make sure this is what you intended. Then,
+// save this buffer, and the macro should appear in the
+// Macros menu.
+SearchAndReplace.setSearchString("[�|�|�]");
+SearchAndReplace.setReplaceString("\'");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("[�|–]");
+SearchAndReplace.setReplaceString("-");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("^(.*?):");
+SearchAndReplace.setReplaceString("<i>$1</i>:");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("^");
+SearchAndReplace.setReplaceString("<p class=sub>");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("\'");
+SearchAndReplace.setReplaceString("'");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("\'");
+SearchAndReplace.setReplaceString("'");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("�");
+SearchAndReplace.setReplaceString("x");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString("\\n");
+SearchAndReplace.setReplaceString("");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
+SearchAndReplace.setSearchString(" ");
+SearchAndReplace.setReplaceString(" ");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(false);
+SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
+SearchAndReplace.replaceAll(view);
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/Embolden.bsh Tue Oct 6 04:10:39 2009
@@ -0,0 +1,60 @@
+/*
+ * Insert_Tag.bsh - a BeanShell macro script for the
+ * jEdit text editor - inserts opening and closing tags
+ * around selected text
+ * Copyright (C) 2001 John Gellene
+ *
jgel...@nyc.rr.com
+ *
http://community.jedit.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with the jEdit program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ *
+ * $Id: Insert_Tag.bsh 4988 2004-03-08 04:29:12Z spestov $
+ */
+
+
+void italicize()
+{
+ caret = textArea.getCaretPosition();
+ text = textArea.getSelectedText();
+ if(text == null) text = "";
+ sb = new StringBuffer();
+ sb.append("<b>");
+ sb.append(text);
+ sb.append("</b>");
+ textArea.setSelectedText(sb.toString());
+ //if no selected text, put the caret between the tags
+ if(text.length() == 0)
+ textArea.setCaretPosition(caret + tag.length() + 2);
+}
+
+if(buffer.isReadOnly())
+ Macros.error(view, "Buffer is read-only.");
+else
+ italicize();
+
+/*
+ Macro index data (in DocBook format)
+
+<listitem>
+ <para><filename>Insert_Tag.bsh</filename></para>
+ <abstract><para>
+ Inserts a balanced pair of markup tags as supplied in a i
+ nput dialog.
+ </para></abstract>
+</listitem>
+
+*/
+
+// end Insert_Tag.bsh
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/Italicize.bsh Tue Oct 6 04:10:39 2009
@@ -0,0 +1,60 @@
+/*
+ * Insert_Tag.bsh - a BeanShell macro script for the
+ * jEdit text editor - inserts opening and closing tags
+ * around selected text
+ * Copyright (C) 2001 John Gellene
+ *
jgel...@nyc.rr.com
+ *
http://community.jedit.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with the jEdit program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ *
+ * $Id: Insert_Tag.bsh 4988 2004-03-08 04:29:12Z spestov $
+ */
+
+
+void italicize()
+{
+ caret = textArea.getCaretPosition();
+ text = textArea.getSelectedText();
+ if(text == null) text = "";
+ sb = new StringBuffer();
+ sb.append("<i>");
+ sb.append(text);
+ sb.append("</i>");
+ textArea.setSelectedText(sb.toString());
+ //if no selected text, put the caret between the tags
+ if(text.length() == 0)
+ textArea.setCaretPosition(caret + tag.length() + 2);
+}
+
+if(buffer.isReadOnly())
+ Macros.error(view, "Buffer is read-only.");
+else
+ italicize();
+
+/*
+ Macro index data (in DocBook format)
+
+<listitem>
+ <para><filename>Insert_Tag.bsh</filename></para>
+ <abstract><para>
+ Inserts a balanced pair of markup tags as supplied in a i
+ nput dialog.
+ </para></abstract>
+</listitem>
+
+*/
+
+// end Insert_Tag.bsh
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/Remove_newline_in_selection.bsh Tue
Oct 6 04:10:39 2009
@@ -0,0 +1,10 @@
+// This is a recorded macro. First, check over the
+// commands to make sure this is what you intended. Then,
+// save this buffer, and the macro should appear in the
+// Macros menu.
+SearchAndReplace.setSearchString("\\n");
+SearchAndReplace.setReplaceString("");
+SearchAndReplace.setBeanShellReplace(false);
+SearchAndReplace.setIgnoreCase(false);
+SearchAndReplace.setRegexp(true);
+SearchAndReplace.replace(view);
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/Table cell-ify.bsh Tue Oct 6 04:10:39
2009
@@ -0,0 +1,60 @@
+/*
+ * Insert_Tag.bsh - a BeanShell macro script for the
+ * jEdit text editor - inserts opening and closing tags
+ * around selected text
+ * Copyright (C) 2001 John Gellene
+ *
jgel...@nyc.rr.com
+ *
http://community.jedit.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with the jEdit program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ *
+ * $Id: Insert_Tag.bsh 4988 2004-03-08 04:29:12Z spestov $
+ */
+
+
+void italicize()
+{
+ caret = textArea.getCaretPosition();
+ text = textArea.getSelectedText();
+ if(text == null) text = "";
+ sb = new StringBuffer();
+ sb.append("<td>");
+ sb.append(text);
+ sb.append("</td>");
+ textArea.setSelectedText(sb.toString());
+ //if no selected text, put the caret between the tags
+ if(text.length() == 0)
+ textArea.setCaretPosition(caret + tag.length() + 2);
+}
+
+if(buffer.isReadOnly())
+ Macros.error(view, "Buffer is read-only.");
+else
+ italicize();
+
+/*
+ Macro index data (in DocBook format)
+
+<listitem>
+ <para><filename>Insert_Tag.bsh</filename></para>
+ <abstract><para>
+ Inserts a balanced pair of markup tags as supplied in a i
+ nput dialog.
+ </para></abstract>
+</listitem>
+
+*/
+
+// end Insert_Tag.bsh
=======================================
--- /dev/null
+++ /trunk/charmgrjs/resources/jedit/properties Tue Oct 6 04:10:39 2009
@@ -0,0 +1,246 @@
+#jEdit properties
+#Mon Sep 14 07:20:09 EDT 2009
+projectviewer.gui.ImportDialog.x=50
+prev-line.shortcut2=C+i
+helpviewer.width=752
+quicknotepad.dock-position=floating
+vfs.browser.last-filter=*[^~\#]
+jdiff.selected-highlight-inserted-color=\#99cc66
+view.extendedState=4
+view.structureHighlightColor=\#ffff00
+indent-lines.shortcut=
+select-line-end.shortcut=CAS+SEMICOLON
+prev-word.shortcut2=CA+j
+plugin-options.last=quicknotepad
+plugin-blacklist.WhiteSpace.jar=false
+jdiff.inserted-color=\#99cc66
+tip.show=false
+error-list.errorColor=\#ff0000
+plugin-blacklist.xmlrpc-client-3.1.jar=false
+error-list.warningColor=\#ffa800
+view.y=25
+view.x=559
+new-file.shortcut=CA+n
+select-prev-char.shortcut2=CS+j
+buffer.encoding=UTF-8
+console.warningColor=\#ffa800
+plugin-blacklist.Templates.jar=false
+view.fracFontMetrics=true
+search.skipHidden.toggle=true
+view.style.keyword3=color\:\#cc6600
+view.style.keyword2=color\:\#00cc99
+view.style.keyword1=color\:\#ffa500
+projectviewer.create_project.splitter=115
+view.search.hypersearch.toggle=false
+plugin-blacklist.commons-codec-1.3.jar=false
+select-line-end.shortcut2=CS+SEMICOLON
+view.width=589
+view.antiAlias=subpixel
+view.gutter.focusBorderColor=\#ffff00
+search-in-open-buffers.shortcut=
+plugin-blacklist.commons-logging-1.1.jar=false
+view.height=704
+line-home.shortcut2=CA+h
+plugin-blacklist.ProjectViewer.jar=false
+search.ignoreCase.toggle=false
+console.errorColor=\#ff0000
+white-space.whitespace-color=\#ff6600
+jdiff.highlight-changed-color=\#ffff90
+search.width=494
+plugin-options.height=568
+prev-line.shortcut=CA+i
+delete-line.shortcut=
+view.status.foreground=\#f5deb3
+view.style.operator=color\:\#00ffff
+white-space.tab-color=\#6c92b8
+plugin-manager.width=558
+helpviewer.height=529
+projectviewer.gui.ImportDialog.height=603
+plugin-blacklist.JakartaCommons.jar=false
+plugin-blacklist.commons-httpclient-3.0.1.jar=false
+status.errorWidget.y=50
+status.errorWidget.x=50
+projectviewer.gui.ImportDialog.width=437
+buffer.tabSize=4
+view.gutter.highlightColor=\#00cd00
+white-space.block-color=\#006633
+search.hypersearch.toggle=false
+swap-marker.shortcut=
+search.skipBinary.toggle=true
+plugin-blacklist.commons-lang-2.3.jar=false
+options.y=115
+options.x=485
+select-marker.shortcut=
+search.height=420
+status.errorWidget.height=421
+Embolden.shortcut=C+e C+b
+projectviewer.filechooser.directory=/media/Puerto Juan/charmgrjs
+search.beanshell.toggle=false
+select-next-line.shortcut3=CAS+k
+view.fontsize=10
+select-next-line.shortcut2=CS+k
+view.style.markup=color\:\#00aae2
+view.thickCaret=false
+plugin-options.width=619
+view.gutter.markerColor=\#006666
+options.height=609
+jdiff.changed-color=\#ffcc66
+plugin-blacklist.xmlrpc-common-3.1.jar=false
+select-next-word.shortcut2=CAS+l
+Italicize.shortcut=C+e C+i
+jdiff.overview-inserted-color=\#99cc66
+console.plainColor=\#000000
+console.infoColor=\#009600
+next-buffer.shortcut2=C+n
+fallbackEncodings=
+projectviewer.y=50
+toggle-word-wrap.shortcut=CA+PERIOD
+projectviewer.x=50
+select-next-line.shortcut=CAS+k
+plugin-blacklist.log4j-1.2.14.jar=false
+goto-marker.shortcut=
+tasklist.highlight.color=\#ffffff
+ignore-case.shortcut=
+helpviewer.splitter=250
+vfs.browser.status.width=100
+view.selectionColor=\#676700
+goto-line.shortcut=
+vfs.browser.dock-position=floating
+select-prev-line.shortcut2=CS+i
+console.bgColor=\#ffffff
+encodingDetectors=BOM XML-PI
+expand-abbrev.shortcut=
+search.subdirs.toggle=false
+plugin-options.splitter=126
+line-end.shortcut=C+SEMICOLON
+status.errorWidget.width=644
+buffer.indentSize=4
+select-prev-word.shortcut2=CAS+j
+next-char.shortcut2=C+l
+next-textarea.shortcut2=C+m
+jdiff.highlight-deleted-color=\#ff9090
+vfs.browser.dialog.width=471
+icon-theme=tango
+jdiff.overview-changed-color=\#ffcc66
+white-space.space-color=\#727b84
+log-viewer.dock-position=floating
+projectviewer.width=124
+plugin-blacklist.bcel-5.2.jar=false
+projectviewer.dock-position=left
+quick-search.shortcut2=C+u
+plugin-manager.y=50
+plugin-manager.x=50
+console.fontsize=12
+vfs.browser.dialog.y=50
+vfs.browser.dialog.x=146
+options.shortcuts.select.index=0
+appearance.continuousLayout=false
+D_a_D_Fixup.shortcut=C+e C+d
+jdiff.selected-highlight-changed-color=\#ffcc66
+io-progress-monitor.dock-position=floating
+select-prev-line.shortcut=CAS+i
+plugin-blacklist.CommonControls.jar=false
+view.lineHighlightColor=\#002601
+view.caretColor=\#00cc33
+plugin-manager.mirror.cached-id=switch
+projectviewer.height=499
+line-home.shortcut=C+h
+select-line-home.shortcut2=CAS+h
+last-action.shortcut=
+view.status.background=\#2f4f4f
+delete.shortcut2=C+d
+search.regexp.toggle=true
+Remove_newline_in_selection.shortcut=C+e C+n
+vfs.browser.size.width=100
+view.style.function=color\:\#b2dfee
+search.y=418
+search.x=-5
+view.eolMarkerColor=\#009999
+console.font=monospaced
+plugin-manager.extendedState=0
+plugin-blacklist.TextTools.jar=false
+plugin-blacklist.commons-net-1.4.1.jar=false
+view.gutter.structureHighlightColor=\#ffff00
+plugin-manager.height=634
+jdiff.deleted-color=\#ff6666
+lookAndFeel=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
+helpviewer.y=50
+helpviewer.x=50
+plugin-blacklist.oro-2.0.8.jar=false
+search.wrap.toggle=true
+plugin-blacklist.velocity-1.5.jar=false
+view.gutter.noFocusBorderColor=\#808080
+plugin-blacklist.ws-commons-util-1.0.2.jar=false
+plugin-blacklist.commons-collections-3.2.jar=false
+view.gutter.fgColor=\#ffffcc
+plugin-blacklist.kappalayout.jar=false
+view.style.literal4=color\:\#ff9966
+view.style.literal3=color\:\#ff0099
+view.style.literal2=color\:\#ffff66
+cut-append.shortcut=
+view.style.literal1=color\:\#00cd00
+jdiff.invalid-color=\#cccccc
+projectviewer.create_project.height=342
+prev-char.shortcut2=C+j
+record-temp-macro.shortcut=
+vfs.browser.modified.width=100
+line-end.shortcut2=CA+SEMICOLON
+options.abbrevs.combobox.index=0
+view.style.comment3=color\:\#ccccff
+view.style.comment2=color\:\#99ff99
+view.gutter.bgColor=\#003333
+view.style.comment1=color\:\#bebebe
+view.fgColor=\#f5deb3
+search-in-directory.shortcut=
+jdiff.overview-deleted-color=\#ff6666
+run-temp-macro.shortcut=
+vfs.browser.dialog.height=418
+view.bgColor=\#2f4f4f
+firstTime=false
+view.font=DejaVu Sans Mono
+plugin-options.y=50
+options.width=768
+plugin-options.x=50
+resetUndoOnSave=false
+white-space.fold-color=\#cccccc
+jdiff.overview-invalid-color=\#cccccc
+vfs.browser.horizontalSplitter=84
+options.splitter=162
+search.replace.value=,
+plugin-blacklist.JDiffPlugin.jar=false
+center-caret.shortcut=
+record-macro.shortcut=
+next-line.shortcut2=C+k
+view.style.label=color\:\#ffffcc style\:i
+prev-buffer.shortcut2=CS+n
+redo.shortcut2=C+y
+plugin-blacklist.EditorScheme.jar=false
+jdiff.highlight-inserted-color=\#d9ff90
+plugin-blacklist.GnuRegexp.jar=false
+jdiff.selected-highlight-deleted-color=\#ff6666
+helpviewer.extendedState=0
+view.gutter.lineNumbers=true
+next-word.shortcut2=CA+l
+stop-recording.shortcut=
+projectviewer.create_project.width=457
+buffer.deepIndent=false
+select-next-char.shortcut2=CS+l
+projectviewer.extendedState=0
+view.docking.framework=Original
+vfs.browser.type.width=100
+view.style.digit=color\:\#cdcd00
+console.fontstyle=0
+join-lines.shortcut=
+Text/Insert_Tag.shortcut=C+e C+o
+select-line-home.shortcut=CS+h
+Table_cell-ify.shortcut=C+e C+u
+D&D_Fixup.shortcut=C+e C+h
+search.find.value=\\n
+next-line.shortcut=CA+k
+view.style.foldLine.3=color\:\#99ff99 bgColor\:\#504655 style\:b
+view.style.foldLine.2=color\:\#99ff99 bgColor\:\#608a6e style\:b
+projectviewer.create_project.y=50
+view.style.foldLine.1=color\:\#99ff99 bgColor\:\#5d5d50 style\:b
+projectviewer.create_project.x=50
+view.style.foldLine.0=color\:\#99ff99 bgColor\:\#006699 style\:b
+projectviewer.gui.ImportDialog.y=50