>
Rating - {{ratings.critics_rating}}
>
{{/movie}}
```
## Perl
```perl
my $var = shift;
$var =~ s/bla/foo/igs;
$var =~ s!bla!foo!igs;
$var =~ s#bla#foo#igs;
```
## PHP
```php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
class IndexController extends AbstractActionController
{
}
```
## Python
```python
def addXToY(x, y):
total = x + y
print total
```
## QML
```qml
Text {
id: hello
width: 100
text: "Hello world!"
}
```
## R
```r
# Declare function “f” with parameters “x”, “y“
# that returns a linear combination of x and y.
f <- function(x, y) {
z <- 3 * x + 4 * y
return(z)
}
```
## Raku
```raku
grammar Parser {
rule TOP { I }
token love { '♥' | love }
token lang { < Raku Perl Rust Go Python Ruby > }
}
say Parser.parse: 'I ♥ Raku';
say 1 #`««« blah TODO blah
here? »»» 2 ;
say 1 #` ( blah TODO blah
2 ;
rx- regex -
```
## Ruby
```ruby
require 'Config'
def CGI::escape(string)
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
'%' + $1.unpack('H2' * $1.size).join('%').upcase
end.tr(' ', '+')
end
```
## Rust
```rust
fn main() {
println!("Hello world!");
}
```
## MySQL
```mysql
-- comment
CREATE TABLE stuff COLUMNS(col1 INT, col2 Varchar);
SELECT * FROM stuff WHERE id = 'string';
select * from stuff where id < 0.42;
Select col1, col2 From stuff Where stuff.col1 IS NOT NuLL;
```
## Nim
```nim
proc main() =
echo "Hello world!"
```
## TypeScript
```ts
class Student {
fullName: string;
constructor(public firstName: string, public middleInitial: string, public lastName: string) {
this.fullName = firstName + " " + middleInitial + " " + lastName;
}
}
```
## XML
```xml
<tag attribute="3">
<nested/>
>
```
## reStructuredText
```rst
Section Header
==============
.. image:: /path/to/image.jpg
- A bullet list item
```
## Doxygen
```doxygen
a normal member taking two arguments and returning an integer value.
@param a an integer argument.
@param s a constant character pointer.
@see Javadoc_Test()
@see publicVar()
@return The test results
```
## No language specified
```
No language is specified, but it should be still rendered as code block.
```
# Fenced code blocks with more than 3 backticks or tildes
~~~
Fenced code block with 3 tildes.
~~~
`````````
Some implementations of Markdown/MultiMarkdown support more than 3 backticks or tildes.
```
The block ends with the same amount of backticks.
`````````
~~~~~~~~~~~~
Fenced code block with more tildes.
~~~~~~~~~~~~
## With languages
```````html
Hello world!
```
```````
~~~bash
for f in *; do
echo "$f"
done
~~~
~~~~~~~~~python
def addXToY(x, y):
total = x + y
print total
~~~ # <= doesn't end here
~~~~~~~~~
# Italic and bold text
**b** *i* __b__ _i_
***ib*** ___ib___
**_ib_** __*ib*__
* _italic_ **bold** ***ib*** ~~strikeout~~
> _italic_ **bold** ***ib*** ~~strikeout~~
## Bold
**bold*___text** normal
__bold_***text__ normal
## Italic
*italic _ text* normal
_italic * text_ normal
## Italic-Bold
***italic-bold ** italic-bold*** normal
***bold-italic text **bold-italic text*** normal
***bold*italic*** normal
**_bold-italic text_** normal
_ normal text_ * normal text *
*italic text*normal text*
*italic text *italic text*
**bold text**normal text**
**bold text **bold text**
aaa**bold text**aaaaa
aaa__normal text__aaaaa
пристаням_стремятся_
\*normal text*
_normal text\_
**italic text\**
***only bold\***
**bold\** bold**
## Highlight
==very important words== normal
==very=important=words== normal
# 1
## 2
### 3
#### 4
##### 5
###### 6
# 11; 1-6 should close here
## 22
### 33
## 222; 22 and 33 should close here