Programtipset: BBEdit

Programtipset: BBEdit

Programtipset: BBEdit

BBEdit är en mycket populär editor i programmeringssammanhang. Det är en kraftfull editor med mängder av bra finesser, effektiv sökfunktion, färgscheman för olika programspråk och du kan leta efter mönster tillsammans med smarta uppladdningsfunktioner.

BBedit kostar 49 dollar.

BBEdit is the leading professional HTML and text editor for the Mac. Specifically crafted in response to the needs of Web authors and software developers, this award-winning product provides a plethora of features for editing, searching, and manipulation of text. BBEdit transforms text with high performance.

An intelligent interface provides easy access to BBEdit’s best of class features including grep pattern matching, search and replace across multiple files, function navigation and syntax coloring for numerous source code languages, FTP and SFTP open and save, AppleScript, Perl, and OS X Unix scripting support, glossary support, and a complete set of HTML tools.

What’s New

Version 12.0:Note: Now requires OS X 10.11.6 or later.
Note: Owners of BBEdit 11 can upgrade for US$29.99. Owners of BBEdit 10 or earlier (including customers who purchased BBEdit in the Mac App Store) can upgrade for US$39.99.

  • There’s a new preference pane: ”Completion”. This contains the settings for text completion that used to be in the Editing preferences, and adds a setting for automatic insertion of delimiters (parens, brackets, single and double quotes, as well as any language-specific elements). The setting ”Surround selected text when typing matching delimiters” allows you to control whether typing an opening delimiter will surround the selection range. This is independent from whether delimiters are auto-paired when typing an opening delimiter with no text selected.
  • There is a new command on the Edit menu: ”Paste Using Filter”. Under this item are text filters from your ”Text Filters” application support folder. Choosing a filter will process the text on the Clipboard through the selected filter before inserting it in your document. You can paste using the most recently used filter using the appropriate command on the ”Paste” submenu of the Edit menu. This latter command can also have a keyboard equivalent for quicker access.
  • When performing an Extract operation, you can now use a Grep replacement pattern in the ”Replace” field (in Find or Multi-File Search) to transform the extraction results. Performing extraction with Grep substitutions will allow many extraction operations to be completed in just a single step, rather than requiring more than one Replace All operation.
  • The Printing preferences get a new setting to control whether documents should always be wrapped to the printed page.
  • There’s a new submenu on the Edit menu, ”Columns”. This submenu contains commands to help you work more easily with column-delimited text files. The three basic commands, ”Cut Columns”, ”Copy Columns”, and ”Clear Columns” work similarly to their top-level analogues. The columns to be cut/copy/cleared are determined by the selection range: to cut a single column, for example, click in the middle of it. You can cut/copy/clear multiple columns by selecting text across them. The ”Rearrange Columns” command gives you an easy way to, well, rearrange the columns in a column-delimited text document. Choose the menu command, and then drag the items into the list to order them as you would like, then press the ”Apply” button.
  • There is a new section in the Setup window: ”Folders”. This section lists the available folders in the BBEdit application support folder. Double-clicking on a folder, or clicking the arrow next to a folder, will select that folder in the Finder (creating it first, if necessary). This addition makes it easier to get at application support folders in general, since the Library folder is hidden by default from the user.
  • There is a new setting in the Keyboard preferences: ”Enable macOS ”Help” key”. This is off by default, so that pressing the ”Insert” key which is present on some PC-style keyboards doesn’t open the in-application help. (This frequently happens accidentally.)
  • Added an ”Expert” preferences pane, which provides direction to the Expert Preferences help book. The ”Restore Defaults” button in this pane will reset all expert preferences to their factory defaults.
  • There’s a new command on the Text menu: ”Canonize”. This command is useful for doing batch search-and-replace operations in a file, using another file as a list of search-and-replace transformations. The transformation file is itself a list of replacements, one per line. The search string is separated from the replace string by a tab, so if you want your searches or replacements to contain tabs, you use the ”t” escape sequence. Blank lines are allowed. Transformation files may be commented: everything after a ”#” is ignored, so if you want to use search or replace strings that contain a ”#”, you must escape it: ”#”. There is one case in which a line may contain only a single string, and that is when you wish to case-insensitively normalize the spelling of all occurrences of a word.
  • The Live Search command now supports grep pattern matching when the ”Grep” option is enabled, and stored patterns are available under the ”Saved patterns” (”g”) popup. If the entered pattern is invalid, BBEdit will display an alert icon which you can click to see the error.
  • When a remote (FTP/SFTP) document is open, ”Reload from Disk” on the File menu will become ”Reload from Server”; choosing this command will fetch a fresh copy of the document data from the server, and then refresh the document’s contents.
  • ”Preview in BBEdit” windows get a ”Show Inspector” toolbar button, which displays the WebKit inspector pane for code introspection.
  • The –new-window option for the bbedit tool can now be applied when opening directories: it will stop the application from checking to see whether you’ve already opened that directory, and thus allow you to open the same directory in multiple windows.
  • The navigation bar now contains an item indicating the current Git branch (for documents that are in a Git working copy).
  • Split View (on OS X 10.11 and later) is now functional.
  • Dragging items from an FTP/SFTP browser to the trash is now equivalent to selecting them and clicking the ”Delete” button.
  • You can now drag local files and folders onto an FTP/SFTP browser window to upload them.


This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.