Simple Texture 코드 구문 강조(code highlighting features)
목차
- 목차
- Code Spans
- Fenced Code Blocks
- Simple codeblock with long lines
- Language of Code Blocks
- Highlighted
Code Spans
This is a test for inline codeblocks like C:/Ruby23-x64
or SELECT "offices".* FROM "offices"
Here is a literal `
backtick.
And here is a Ruby code fragment x = Class.new
Fenced Code Blocks
~~~~~~~
code with tildes
~~~~~~~~
Simple codeblock with long lines
function myFunction() {
alert("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
}
Language of Code Blocks
구문
def what?
42
end
Highlighted
External Gist
구문
<script src="https://gist.github.com/yizeng/9b871ad619e6dcdcc0545cac3101f361.js"></script>
Simple Highlight
구문
{ % highlight ruby % }
{ % endhighlight % }
Highlight with long lines
구문
{ % highlight c# % }
public class Hello {
public static void Main() {
{ % endhighlight % }
Highlight with line numbers and long lines
구문
{ % highlight javascript linenos=table % }
function myFunction() {
alert("
{ % endhighlight % }
1
2
3
function myFunction() {
alert("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.");
}