Source

emacs-bbcode /

Filename Size Date modified Message
17.6 KB
1.4 KB
3.8 KB
-*- org -*-
* bcode-mode.el --- Major mode to edit bbcode files in Emacs

This should be trivial and self explanatory.  It is for editing
bbcode, typically when emacs(client) is called as an external
editor from a web browser. It provides font-locking and insertion
commands for the most common bbcode tags.

This is a simple derived mode, not based on xbbcode-mode.

** Keybindings

| key     | binding              |
|---------+----------------------|
| C-c C-b | bbcode-insert-bold   |
| C-c TAB | bbcode-insert-italic |
| C-c C-l | bbcode-insert-link   |
| C-c RET | bbcode-insert-image  |
| C-c C-q | bbcode-insert-quote  |

** Installation

Put bbcode-mode.el in your load-path.  Add the following to your .emacs:

#+begin_src emacs-lisp
  (require 'bbcode-mode)
#+end_src

Or, if you prefer not to load the file until needed, this:

#+begin_src emacs-lisp
  (autoload 'bbcode-mode "bbcode-mode" "BBCode editing mode." t)
  (add-to-list 'auto-mode-alist '("\\.bbc\\(ode\\)?\\'" . bbcode-mode))
#+end_src


** Usage

   In Firefox, install the [[https://addons.mozilla.org/en-US/firefox/addon/4125][It's All Text!]] extension, and set it up to
   use emacsclient as your editor. When editing a bbcode textarea,
   right-click on the edit button, and select "edit with a new
   extension", select ".bbc" or ".bbcode".

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.