Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
313ea270
Commit
313ea270
authored
Jul 10, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code page ported to markdown
parent
bae16041
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
53 deletions
+69
-53
docs/_includes/css/code.html
docs/_includes/css/code.html
+0
-52
docs/_includes/css/code.md
docs/_includes/css/code.md
+68
-0
docs/css.html
docs/css.html
+1
-1
No files found.
docs/_includes/css/code.html
deleted
100644 → 0
View file @
bae16041
<div
class=
"bs-docs-section"
>
<h1
id=
"code"
class=
"page-header"
>
Code
</h1>
<h2
id=
"code-inline"
>
Inline
</h2>
<p>
Wrap inline snippets of code with
<code>
<
code
>
</code>
.
</p>
<div
class=
"bs-example"
>
For example,
<code>
<
section
>
</code>
should be wrapped as inline.
</div>
{% highlight html %}
For example,
<code>
<
section
>
</code>
should be wrapped as inline.
{% endhighlight %}
<h2
id=
"code-user-input"
>
User input
</h2>
<p>
Use the
<code>
<
kbd
>
</code>
to indicate input that is typically entered via keyboard.
</p>
<div
class=
"bs-example"
>
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
<br>
To edit settings, press
<kbd><kbd>
ctrl
</kbd>
+
<kbd>
,
</kbd></kbd>
</div>
{% highlight html %}
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
<br>
To edit settings, press
<kbd><kbd>
ctrl
</kbd>
+
<kbd>
,
</kbd></kbd>
{% endhighlight %}
<h2
id=
"code-block"
>
Basic block
</h2>
<p>
Use
<code>
<
pre
>
</code>
for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
</p>
<div
class=
"bs-example"
>
<pre>
<
p
>
Sample text here...
<
/p
>
</pre>
</div>
{% highlight html %}
<pre>
<
p
>
Sample text here...
<
/p
>
</pre>
{% endhighlight %}
<p>
You may optionally add the
<code>
.pre-scrollable
</code>
class, which will set a max-height of 350px and provide a y-axis scrollbar.
</p>
<h2
id=
"code-variables"
>
Variables
</h2>
<p>
For indicating variables use the
<code>
<
var
>
</code>
tag.
</p>
<div
class=
"bs-example"
>
<p><var>
y
</var>
=
<var>
m
</var><var>
x
</var>
+
<var>
b
</var></p>
</div>
{% highlight html %}
<var>
y
</var>
=
<var>
m
</var><var>
x
</var>
+
<var>
b
</var>
{% endhighlight %}
<h2
id=
"code-sample-output"
>
Sample output
</h2>
<p>
For indicating blocks sample output from a program use the
<code>
<
samp
>
</code>
tag.
</p>
<div
class=
"bs-example"
>
<p><samp>
This text is meant to be treated as sample output from a computer program.
</samp></p>
</div>
{% highlight html %}
<samp>
This text is meant to be treated as sample output from a computer program.
</samp>
{% endhighlight %}
</div>
docs/_includes/css/code.md
0 → 100644
View file @
313ea270
<a
id=
"code"
></a>
# Code
Styles for inline code snippets and longer, multiline blocks of code.
<a
id=
"code-inline"
></a>
## Inline code
Wrap inline snippets of code with
`code`
. Be sure to escape HTML angle brackets.
{% example html %}
For example,
<code>
<
section
>
</code>
should be wrapped as inline.
{% endexample %}
<a
id=
"code-user-input"
></a>
## User input
Use the
`<kbd>`
to indicate input that is typically entered via keyboard.
{% example html %}
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
<br>
To edit settings, press
<kbd><kbd>
ctrl
</kbd>
+
<kbd>
,
</kbd></kbd>
{% endexample %}
<a
id=
"code-block"
></a>
## Preformatted text
Or, code blocks. Use
`<pre>`
s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering.
{% example html %}
<pre>
<
p
>
Sample text here...
<
/p
>
</pre>
{% endexample %}
You may optionally add the
`.pre-scrollable`
class, which will set a max-height of 350px and provide a y-axis scrollbar.
<a
id=
"code-variables"
></a>
## Variables
For indicating variables use the
`<var>`
tag.
{% example html %}
<var>
y
</var>
=
<var>
m
</var><var>
x
</var>
+
<var>
b
</var>
{% endexample %}
<a
id=
"code-sample-output"
></a>
## Sample output
For indicating blocks sample output from a program use the
`<samp>`
tag.
{% example html %}
<samp>
This text is meant to be treated as sample output from a computer program.
</samp>
{% endexample %}
docs/css.html
View file @
313ea270
...
...
@@ -9,9 +9,9 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e
{% include css/overview.md %}
{% include css/grid.md %}
{% include css/type.md %}
{% include css/code.md %}
{% endmarkdown %}
{% include css/code.html %}
{% include css/tables.html %}
{% include css/forms.html %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment