Funcdown Syntax
This page addresses all that one might need in order to quickly get the job done with Funcdown.
Rules Of Thumb
Before You begin with Funcdown, here is the list or mandatory rules that one should follow in order to avoid all kind of errors by just blind-trying
to do something.
Insight Tables for Funcdown syntax and Perks
The following tables reflect how to easily expand, either tag or attribute within tag by using CAPITAL (one or two at most) letter(s) or how to use special characters as prefix or suffix modifier.
Tag Expansion
Association | String Mode | Hashmap Mode |
---|---|---|
R for <html> | R { Text } | [ 'R' => 'Text' ] |
H for <head> | H { Text } | [ 'H' => 'Text' ] |
M for <meta> | M { Text } | [ 'M' => 'Text' ] |
T for <title> | T { Text } | [ 'T' => 'Text' ] |
L for <link> | L { Text } | [ 'L' => 'Text' ] |
J for <script> | J { Text } | [ 'J' => 'Text' ] |
B for <body> | B { Text } | [ 'B' => 'Text' ] |
D for <div> | D { Text } | [ 'D' => 'Text' ] |
N for <nav> | N { Text } | [ 'N' => 'Text' ] |
P for <pre> | P { Text } | [ 'P' => 'Text' ] |
C for <code> | C { Text } | [ 'C' => 'Text' ] |
F for <form> | F { Text } | [ 'F' => 'Text' ] |
I for <input> | I { Text } | [ 'I' => 'Text' ] |
A for <article> | A { Text } | [ 'A' => 'Text' ] |
S for <section> | S { Text } | [ 'S' => 'Text' ] |
AS for <aside> | AS { Text } | [ 'AS' => 'Text' ] |
HD for <header> | HD { Text } | [ 'HD' => 'Text' ] |
FT for <footer> | FT { Text } | [ 'FT' => 'Text' ] |
BT for <button> | BT { Text } | [ 'BT' => 'Text' ] |
TT for <textarea> | TT { Text } | [ 'TT' => 'Text' ] |
Attribute Expansion
Association | String Mode | Hashmap Mode |
---|---|---|
# for id="..." | tagname (# ...) { Text } | [ ':tagname@# ...' => 'Text' ] |
% for href="..." | tagname (% ...) { Text } | [ ':tagname@% ...' => 'Text' ] |
. for class="..." | tagname (. ...) { Text } | [ ':tagname@. ...' => 'Text' ] |
! for title="..." | tagname (! ...) { Text } | [ ':tagname@! ...' => 'Text' ] |
@ for content="..." | tagname (@ ...) { Text } | [ ':tagname@@ ...' => 'Text' ] |
A for alt="..." | tagname (A ...) { Text } | [ ':tagname@A ...' => 'Text' ] |
S for src="..." | tagname (S ...) { Text } | [ ':tagname@S ...' => 'Text' ] |
T for type="..." | tagname (T ...) { Text } | [ ':tagname@T ...' => 'Text' ] |
N for name="..." | tagname (N ...) { Text } | [ ':tagname@N ...' => 'Text' ] |
V for value="..." | tagname (V ...) { Text } | [ ':tagname@V ...' => 'Text' ] |
C for style="..." | tagname (C ...) { Text } | [ ':tagname@C ...' => 'Text' ] |
H for hidden="..." | tagname (H ...) { Text } | [ ':tagname@H ...' => 'Text' ] |
R for readonly="..." | tagname (R ...) { Text } | [ ':tagname@R ...' => 'Text' ] |
E for contenteditable="..." | tagname (E ...) { Text } | [ ':tagname@E ...' => 'Text' ] |
Microdown
Microdown
is quick and dirty way to transform or isolate *(words with a lot of punctuation (dangerous) characters) without leaving curly brace {}
wrappers. Its general purpose is very similar to the one that BB-CODE has. And as Funcdown it self, You don't need to repeat closing tag name. SINGLE_CHAR//
TextNode+
Association | String Mode | Result |
---|---|---|
a for <a> | a//textnode+ | a |
b for <b> | b//textnode+ | b |
i for <i> | i//textnode+ | i |
p for <p> | p//textnode+ | p |
s for <s> | s//textnode+ | |
u for <u> | u//textnode+ | u |
q for <q> | q//textnode+ | q |
C for <code> | C//textnode+ | code |
M for <mark> | M//textnode+ | mark |
S for <span> | S//textnode+ | span |
J for <script> | J//(function(x){return x\})("V")+ | [invisible] |
I for <input> | I//@T text| + | |
_ for <hr> | _//@. someClass| + | |
- for <br> | -//+ | [invisible] |
! for <!-- COMMENT --> | !//Comment+ | [invisible] |
String Mode Syntax Basics
You type .. | .. browser gets |
---|---|
*{5} | |
*{X} | |
!{HTML comment} | |
R[] | |
H[] | |
B[] | |
M(charset utf-8)| | |
hr| br| | |
~{ This is not a love song! } | |
p { This is not a love song! } | |
p [ ~{This is not a love song!} ] | |
ul (# mySpecialList) [ li (. myClassOne) [ p { Attributes are wrapped within b//() ^+ braces or `parenthesis`. } ] li (! Title on Hover) [ p { HTML Text is wrapped within b//{\} ^+ braces or `curlies`. } ] li (C font-size: smaller) [ p { HTML Text must follow preceeding word *(tag) or C//~+ character. } ] ] | |