-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
49 lines (39 loc) · 1.43 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script>
<script type="text/javascript" src="../dist/mkb.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/vs2015.min.css">
<script type="text/javascript">
hljs.initHighlightingOnLoad();
</script>
</head>
<body>
<pre><code class="language-mkb">
// MKB - Syntax Highlighting Example
// Example usage
#integer = 0
&thing = "test"
@#globalinteger = 0
@&globalstring = "text and input %&array[%#index%]%"
&constant = %XPOS%
&str = %&str[%#val[%#i%]%]%
if((#thisid > #upid) || ((#thisid == #upid) && (#thisdata > #updata)))
bool = ((%#thisid% > %#upid%) || ((%#thisid% == %#upid%) && (%#thisdata% > %#updata%)))
endif
lograw(["",{"text":"highlight.js entry > ","color":"red"},{"text":"[CLICK HERE] ","color":"green","clickEvent":{"action":"run_command","value":"/fill %#fillx1% %#filly1% %#fillz1% %#fillx2% %#filly2% %#fillz2% air"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"[GREETINGS] -Lezappen","color":"green"}]}}}]);
do(12);
GETIDREL(0,-1,0,&variant1)
&variant2 = GETIDREL(0,-1,0,,#data)
Break;
wait(1t)
LOG(%#data%)
loop
unloop
sumfing("good");
&thing = "hello %&again% &7Colored &eText"
ECHO("this is a test: %#number%")
LOGTO("file.txt","text here %hi%")
// test comment
</code></pre>
</body>
</html>