Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/test.markdown.fold
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 108 | <body> | |||
---|---|---|---|---|---|
109 | <p class="main">Hello world!</p> | 109 | <p class="main">Hello world!</p> | ||
110 | </body> | 110 | </body> | ||
111 | </html> | 111 | </html> | ||
112 | ``` | 112 | ``` | ||
113 | 113 | | |||
114 | ## JSON | 114 | ## JSON | ||
115 | 115 | | |||
116 | ```json | 116 | ```json | ||
117 | <beginfold id='68'>[</beginfold id='68'><beginfold id='67'>{</beginfold id='67'> | 117 | <beginfold id='87'>[</beginfold id='87'><beginfold id='86'>{</beginfold id='86'> | ||
118 | "hello": "world", | 118 | "hello": "world", | ||
119 | "count": 1, | 119 | "count": 1, | ||
120 | "bool": true | 120 | "bool": true | ||
121 | <endfold id='67'>}</endfold id='67'><endfold id='68'>]</endfold id='68'> | 121 | <endfold id='86'>}</endfold id='86'><endfold id='87'>]</endfold id='87'> | ||
122 | ``` | 122 | ``` | ||
123 | 123 | | |||
124 | ## KConfig | 124 | ## KConfig | ||
125 | 125 | | |||
126 | ```kconfig | 126 | ```kconfig | ||
127 | [General] | 127 | [General] | ||
128 | Toggle=true | 128 | Toggle=true | ||
129 | Count=1 | 129 | Count=1 | ||
130 | ``` | 130 | ``` | ||
131 | 131 | | |||
132 | ## PHP | 132 | ## PHP | ||
133 | 133 | | |||
134 | ```php | 134 | ```php | ||
135 | namespace Application\Controller; | 135 | namespace Application\Controller; | ||
136 | 136 | | |||
137 | use Zend\Mvc\Controller\AbstractActionController; | 137 | use Zend\Mvc\Controller\AbstractActionController; | ||
138 | 138 | | |||
139 | class IndexController extends AbstractActionController | 139 | class IndexController extends AbstractActionController | ||
140 | <beginfold id='73'>{</beginfold id='73'> | 140 | <beginfold id='92'>{</beginfold id='92'> | ||
141 | <endfold id='73'>}</endfold id='73'> | 141 | <endfold id='92'>}</endfold id='92'> | ||
142 | ``` | 142 | ``` | ||
143 | 143 | | |||
144 | ## Python | 144 | ## Python | ||
145 | 145 | | |||
146 | ```python | 146 | ```python | ||
147 | def addXToY<beginfold id='77'>(</beginfold id='77'>x, y<endfold id='77'>)</endfold id='77'>: | 147 | def addXToY<beginfold id='96'>(</beginfold id='96'>x, y<endfold id='96'>)</endfold id='96'>: | ||
148 | total = x + y | 148 | total = x + y | ||
149 | print total | 149 | print total | ||
150 | ``` | 150 | ``` | ||
151 | 151 | | |||
152 | ## QML | 152 | ## QML | ||
153 | 153 | | |||
154 | ```qml | 154 | ```qml | ||
155 | Text <beginfold id='80'>{</beginfold id='80'> | 155 | Text <beginfold id='99'>{</beginfold id='99'> | ||
156 | id: hello | 156 | id: hello | ||
157 | width: 100 | 157 | width: 100 | ||
158 | text: "Hello world!" | 158 | text: "Hello world!" | ||
159 | <endfold id='80'>}</endfold id='80'> | 159 | <endfold id='99'>}</endfold id='99'> | ||
160 | ``` | 160 | ``` | ||
161 | 161 | | |||
162 | ## Rust | 162 | ## Rust | ||
163 | 163 | | |||
164 | ```rust | 164 | ```rust | ||
165 | fn main() <beginfold id='83'>{</beginfold id='83'> | 165 | fn main() <beginfold id='102'>{</beginfold id='102'> | ||
166 | println!("Hello world!"); | 166 | println!("Hello world!"); | ||
167 | <endfold id='83'>}</endfold id='83'> | 167 | <endfold id='102'>}</endfold id='102'> | ||
168 | ``` | 168 | ``` | ||
169 | 169 | | |||
170 | ## XML | 170 | ## XML | ||
171 | 171 | | |||
172 | ```xml | 172 | ```xml | ||
173 | <beginfold id='89'><tag</beginfold id='89'> attribute="3"> | 173 | <beginfold id='108'><tag</beginfold id='108'> attribute="3"> | ||
174 | <beginfold id='89'><nested</beginfold id='89'><endfold id='89'>/></endfold id='89'> | 174 | <beginfold id='108'><nested</beginfold id='108'><endfold id='108'>/></endfold id='108'> | ||
175 | </tag<endfold id='89'>></endfold id='89'> | 175 | </tag<endfold id='108'>></endfold id='108'> | ||
176 | ``` | 176 | ``` | ||
177 | 177 | | |||
178 | ## No language specified | 178 | ## No language specified | ||
179 | 179 | | |||
180 | ``` | 180 | ``` | ||
181 | No language is specified, but it should be still rendered as code block. | 181 | No language is specified, but it should be still rendered as code block. | ||
182 | ``` | 182 | ``` |