Hugo Future Imperfect Slim

plicx

heal the world.

Syntax Highlighting

Markdown and Shortcode Examples

Hugo Future Imperfect Slim

2 minutes read

function helloWorld () {
  alert("Hello, World!")
}
#include <stdio.h>

/* Hello */
int main(void){
  printf("Hello, World!");
  return 0;
}
// 'Hello World!' program 
 
#include <iostream>
 
int main(){
  std::cout << "Hello World!" << std::endl;
  return 0;
}
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello, World!");
  }
}
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        NSLog (@"Hello, World!");
        [pool drain];
        return 0;
}
print("Hello, world!")
package hello

fun main(args: Array<String>) {
  println("Hello World!")
}
using System;
class HelloWorld{
  public static void Main(){ 
    System.Console.WriteLine("Hello, World!");
  }
}
<html>
<body>
  Hello, World!
</body>
</html>
package main
import fmt "fmt"

func main() 
{
   fmt.Printf("Hello, World!\n");
}
object HelloWorld with Application {
  Console.println("Hello, World!");
}
<?php
  echo 'Hello, World!';
?>
print("Hello, World!") 
(defn hello-world
  "A function print 'Hello world'."
  []
  (prn "Hello world"))
<!DOCTYPE html>
<html>
<head>
  <title>{{ .Title }}</title>
</head>
<body>
  <h1>{{ .Title }}</h1>
  {{ .Content }}
</body>
</html>
{{ partial "header.html" . }}

  <h1>posts</h1>
  {{ range first 10 .Data.Pages }}
    {{ if eq .Type "post"}}
      <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
    {{ end }}
  {{ end }}

  <h1>pages</h1>
  {{ range .Data.Pages }}
    {{ if or (eq .Type "page") (eq .Type "about") }}
      <h2><a href="{{ .Permalink }}">{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}</a></h2>
    {{ end }}
  {{ end }}

{{ partial "footer.html" . }}

Detect the language

package hello

fun main(args: Array<String>) {
  println("Hello World!")
}
<?php
  echo 'Hello, World!';
?>

Recent posts

See more

Tags