富文本新增代码片测试

11111

#!/bin/bash
echo "Hello World !"

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello, world!" << endl;
    return 0;
}
 Console.WriteLine("Hello World!");
            Console.ReadKey();
h1 {margin : 10px 0px 15px 5px;}
package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

11111erlang

[{moscow, {c, -10}}, {cape_town, {f, 70}}, {stockholm, {c, -4}},
 {paris, {f, 28}}, {london, {f, 36}}]
object HelloWorld {
    def main(args: Array[String]): Unit = {
        println("Hello, world!")
    }
}

clojure

(ns clojure.examples.hello
   (:gen-class))
(defn hello-world []
   (println "Hello World"))
(hello-world)

cobol

IF [condition] THEN
   [COBOL statements]
ELSE
   [COBOL statements]
END-IF.

coffeescript

# for(i = 1; i<= 10; i++)
x for x in [1..10]
# => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]

commonlisp

(format t "你好,  世界!")

html

<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>

r

repeat { 
   commands 
   if(condition) {
      break
   }
}

haskell

fac :: Integer -> Integer
fac 0 = 1
fac n | n > 0 = n * fac (n-1)

lua

array = {"Lua", "Tutorial"}

for i= 0, 2 do
   print(array[i])
end

groovy

def methodName() { 
   //Method code 
}

puppet

if CONDITION {
		statement
		……
	}

typescript

var txt = new String("string");
或者更简单方式:
var txt = "string"

xml

<p>This is a paragraph</p>
<p>This is another paragraph</p>  

111

CL-USER> (print "hello,world!")
 
"hello,world!" 
"hello,world!"
CL-USER> (format t "你好,  世界!")
你好,  世界!
NIL
CL-USER> 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值