Sections
Section allows you to split your code into several sections. It's like files... well kinda.
To create a section use the following format: ## My section name [syntax] (syntax is optional).
## Controller
class MyController < ApplicationController
end
## View [html_rails]
<h2><%= @title %></h2>
## Javascript [javascript]
var Page = {
hide: function(page) {
$(page).hide();
}
};
First section will render in the code syntax (language) and labelled Controller. The second one will be labelled View and highlighted as HTML for Rails.
Syntaxes
A syntax describes how the code should be highlighted. For example, Ruby code could have ruby_on_rails syntax. Syntax is just a little more specific. Here's the list of supported syntax:
- ActionScript
- Bash
- C
- C#
- C++
- Delphi
- Erlang
- Haskell
- Java
- JavaScript
- Lisp
- PHP
- Perl
- Python
- Ruby
- VB.NET