You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Text_Filters" />
  </query-continue>
  <query>
    <pages>
      <page pageid="12" ns="0" title="Scripting and Automation">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">Scripts in BBEdit can be executable Unix files, AppleScript files, text factories, or Automator workflows. These are run simply by loading the item and calling it directly, without providing any inputs. (Naturally, AppleScript scripts and Automator actions can query the application, and #! scripts have some information passed to `argc` and `argv` as usual.)

The Scripts menu (and palette) contains all eligible items from the Scripts folder, which can be found in ~/Library/Application Support/BBEdit/Scripts.

* [[Attachment Points]]


== Automating BBEdit ==

* [http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279416727 Send to Arduino]
* [http://t.co/FDxZSOh Turn clipboard contents into plain text] (Automator action. Put in ~/Library/Services, invoke from AppName -&gt; Services menu.)
* [http://entable.s3.amazonaws.com/index.html Entable - Line up text into columns] (see also: [http://bbedit-hints.tumblr.com/post/17659257006 a unix filter to do a similar thing]
* [http://www.angelwatt.com/coding/zen-coding_bbedit.php Zen Coding]
* [http://groups.google.com/group/bbedit/msg/a35b1a0d3b4b5578?dmode=source Incrementing values down multiple lines of code]
* [http://db79.com/2011/07/29/BBEdit_Post_to_MetaWeblog_AppleScript.html Post to MetaWeblog]
* [http://tomingham.org/post/3182188277/reloading-sproutcore-apps SproutCore]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Tabstop cycle]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Text bigger]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Text smaller]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Trim and detab]
* [http://bbedit-hints.tumblr.com/post/16522443482 Open file in new window and arrange]
* [https://gist.github.com/2146799 Show Scratchpad (regardless of what app or Space is frontmost)]
* [https://gist.github.com/2351038 Close and Save front file]
* [https://gist.github.com/2634456 Download direct to BBEdit]
* [http://bbedit-hints.tumblr.com/post/24060655335/applescript-select-a-sentence Selecting a sentence in BBEdit]
* [https://groups.google.com/d/msg/bbedit/gwxMwCQSpL0/q_Kxldnq_6QJ Listing your saved Grep patterns in a readable list]
* [https://groups.google.com/d/msg/bbedit/PAlHap-lXSk/Ysu1DY-fGHwJ Quick Grep Search Forward]
* [http://bbedit-hints.tumblr.com/post/25641121441/running-your-selection-through-a-one-off-script Running your selection through a one-off script]
* [http://ewancarr.tumblr.com/post/26695246934/bbedit-text-filter-increment-lines-based-on-template Increment lines based on template]
* [https://gist.github.com/3237070 Save each line in the current BBEdit document to its own file]
* [https://github.com/workwithnano/bbedit-scripts/blob/master/Update%20Project%20Tags.scpt Update current project's &quot;tags&quot; file]
* [http://bbedit-hints.tumblr.com/post/40682254266/send-selection-to-bbedit-worksheet Send selection to BBEdit Worksheet]
* [https://gist.github.com/rwilcox/e407ebdd2ed569f685f8 Find starting at the top of a document]
* [https://gist.github.com/rwilcox/988dd34fdfe37290c09f Toggle Distraction Free Writing]
* [https://github.com/ollicle/BBEdit-Extract-Placeholder Extract Placeholder]

== BBEdit with other applications ==
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Go Here in Terminal]
* [https://gist.github.com/2006738 Go Here in iTerm]
* [https://gist.github.com/2028536 Go Here in BBEdit's Shell Worksheet]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git-bbdiff]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git pull]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git x]
* [https://github.com/topfunky/PeepOpen-EditorSupport/blob/234cb1c8e0bb392f9c4947faf06b1f44804c942f/PeepOpen-bbedit/README.md Launch PeepOpen for current project or document]
* [http://www.leancrew.com/all-this/2012/09/bbedit-finder-toolbar-icon/ Finder Toolbar icon script for BBEdit]
* [https://gist.github.com/rwilcox/4714936 Send selection to nvALT] (Note: must be storing your notes as Plain Text Files)

== BBEdit and Unix ==

* [https://github.com/cngarrison/rbbedit Edit a file in BBEdit from SSH on another machine!]

== Text Selection and Text Navigation Scripts ==

* [http://www.allthecandyintheworld.com/bbedit/scripts.html Delete entire line]
* [http://www.allthecandyintheworld.com/bbedit/scripts.html Comment entire line]

* [http://www.angelwatt.com/words/2010/07/31/bbedit-textwrangler-home-key-behavior/ IDE style go to start of the line behavior (Go to the start of the text on a line or the start)]
* [http://daringfireball.net/2003/09/select_word_script_for_bbedit Select Word script for BBEdit]
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ Auto-indent for Python, HTML, CSS, Ruby, and more]
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ New Line above current with appropriate indentation level]
* [http://www.ranea.org/bbedit_editoractions.html Editor Actions package - packages these scripts up with Join Lines + some others]
* [https://github.com/rwilcox/Source.bbpackage Source package - includes scripts to select an entire string]
* [http://bbedit-hints.tumblr.com/post/28628019544/inserting-text-in-your-column-selection-multiple Inserting text in your column selection (aka: &quot;multiple carets&quot;)]
* [https://gist.github.com/3349416 Run current selection as BBEdit Clipping]
 
== Applescript Snippets for BBEdit ==

These snippets illustrate techniques for doing stuff in BBEdit with Applescript. They are not meant to be full scripts, but show techniques that you might need for scripts ''you'' write.

* [http://bbedit-hints.tumblr.com/post/18903617528/applescript-inserting-some-text-as-the-current Inserting Some text at the insertion point]
* [http://bbedit-hints.tumblr.com/post/18130219648/applescript-getting-a-list-of-open-documents-in-your Getting a list of open documents in your BBEdit project]
* [http://bbedit-hints.tumblr.com/post/41277831904/example-of-how-to-create-a-bbedit-text-filter-with Example of creating a text filter with Applescript]
* [http://bbedit-hints.tumblr.com/post/42846746767/finding-and-selecting-text-with-applescript Finding and selecting text in Applescript]

== More ==

Don't see what you're after? Try these other wiki pages:

* [[Using BBEdit and (your language)]]
* [[Using BBEdit to make eBooks]]
 
A BBEdit package also contain the script you're looking for: check out this wiki's list of [[Packages]]</rev>
        </revisions>
      </page>
      <page pageid="9" ns="0" title="Support for features in other editors">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">When you learn how to use a text editor, it can be hard to move to another product because you've got a lot invested in keyboard shortcuts, muscle memory, and functionality. 

Here are some things that might help you replicate those in BBEdit.

* [http://entable.s3.amazonaws.com/index.html Entable - Line up text into columns]
* [http://www.idolhands.com/ruby-on-rails/bbedit-on-rails/moving-back-to-bbedit-from-textmate Moving Back to BBEdit from TextMate]
* [http://www.idolhands.com/ruby-on-rails/bbedit-on-rails/cheat-sheets-with-bbedit Ruby on Rails Cheat Sheet]
* Auto-close braces, brackets, and quotation marks with  [http://www.jwwalker.com/pages/autopairs.html AutoPairs] (currently supported on BBEdit 12, without AutoPairs)
* Find file in project (command-T): Use [http://peepcode.com/products/peepopen PeepOpen] from PeepCode (no longer necessary as of BBEdit 10.0.2)
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ Auto-indent and smart newlines like vim and emacs]
* Concatenate: Edit -&gt; Insert -&gt; File Contents
* [https://github.com/adamjarret/red.sh On a remote server open, up BBEdit on your local Mac, like Textmate's RMate command]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>