Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2055 merge code examples #2079

Merged
merged 3 commits into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions docs/en/base/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@ If you want to refer to a larger piece of code, use <code>&lt;pre&gt;</code> tog

<a href="https://vanilla-framework.github.io/vanilla-framework/examples/base/code/"
class="js-example">
View example of the base code block
View example of the base code block
</a>

<hr />
### Code copyable

### Design
Code copyable should be used when presenting the user with a small snippet of code that they will likely want to copy and paste.

<a href="https://vanilla-framework.github.io/vanilla-framework/examples/patterns/code-snippet/"
class="js-example">
View example of the code copyable pattern
</a>

### Code numbered

* [Code design](https://github.com/ubuntudesign/vanilla-design/tree/master/Code)
The code numbered pattern can be used when displaying large blocks of code to enable users to quickly reference a specific line.

### Related
<a href="https://vanilla-framework.github.io/vanilla-framework/examples/patterns/code-numbered/"
class="js-example">
View example of the code numbered pattern
</a>

<hr />

### Design

* [Code numbered pattern](/en/patterns/code-numbered)
* [Code snippet pattern](/en/patterns/code-snippet)
- [Code design](https://github.com/ubuntudesign/vanilla-design/tree/master/Code)
Loading