alterNERDtive.github.io/_posts/2019-01-29-hello-world.md

75 lines
1.2 KiB
Markdown
Raw Normal View History

2019-01-29 21:27:18 +01:00
---
title: "Welcome to Jekyll!"
2019-02-25 18:27:28 +01:00
published: true
2019-01-29 21:27:18 +01:00
---
**Hello world**, this is my first Jekyll blog post.
I hope you like it!
2019-02-25 18:27:28 +01:00
# Highlighter
## Ruby
```ruby
def show
puts "Outputting a very lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong line"
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
```
## Php
```php
<?php
print("Hello {$world}");
?>
```
## Java
```java
public class java {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
```
## HTML
```html
<html>
<head><title>Title!</title></head>
<body>
<p id="foo">Hello, World!</p>
<script type="text/javascript">var a = 1;</script>
<style type="text/css">#foo { font-weight: bold; }</style>
</body>
</html>
```
## Console
```console
# prints "hello, world" to the screen
~# echo Hello, World
Hello, World
# don't run this
~# rm -rf --no-preserve-root /
```
## Css
```css
body {
font-size: 12pt;
background: #fff url(temp.png) top left no-repeat;
}
```
## Yaml
```yaml
---
one: Mark McGwire
two: Sammy Sosa
three: Ken Griffey
```