Sha256: 951a45635f2fbad965cf0a0fdb385ca17093a89dc0f9884677702bb1af184cc8

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

### Include a Code Block

Use file inclusion to include text as a code block.

#### File to Be Included

Here's a file containing code to be included:

@[markdown](hello.rb)

#### Includer File

Here's a template file that includes it:

@[markdown](includer.md)

The treatment token ```:code_block``` specifies that the included text is to be treated as a code block.

@[:markdown](../interface.md)

#### File with Inclusion

Here's the finished file with the included code block:

@[:pre](included.md)

And here's the finished markdown, as rendered on this page:

---

@[:markdown](included.md)

---

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdown_helper-1.9.0 markdown/use_cases/include/include_code_block/use_case_template.md