-
Notifications
You must be signed in to change notification settings - Fork 2
/
demoLink.html
66 lines (53 loc) · 1.71 KB
/
demoLink.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<title>Syntax Highlighter Demo</title>
<!-- <script type="text/javascript" src="./js/HiliSyntax_Link.js"></script>
<script type="text/javascript" src="https://raw.githubuser<!content.com/blaregroup/HiliSyntax/master/js/HiliSyntax_Link.js"></script>-->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1 style="text-align:center;color:red;">Syntax highlighter</h1>
<hr style="color:darkblue;background-color:darkblue;width:90%;height:5px;"/>
<br>
<h2 style="text-align: center">Dark Theme</h2>
<pre class="HiliSyntax_Dark" style="border:1px solid green;width:50%;margin:20px auto;">
#include<stdio.h>
//#include<conio.h>
void main()
{
int big,small,arr[5],i;
printf("\n Enter 5 number:");
for(i=0;i<5;i++)
scanf("%d",&arr[i]);
big=arr[0];
small = arr[0];
for(i=0;i<5;i++)
{
if(big<arr[i])
big=arr[i];
if(small>arr[i])
small =arr[i];
}
printf("\n biggest number is : %d",big);
printf("\n Smallest number is : %d",small);
}
</pre>
<br>
<h2 style="text-align: center">Light Theme</h2>
<pre class="HiliSyntax_Light" style="border:1px solid green;width:50%;margin:20px auto;">
switch(op)
{ int
//case '+': cout<<"\nAnswer : "<<(a+b); break;
/*case '-': cout<<"\n Answer : "<<(a-b); break;*/
case '*': cout<<"\n Answer : "<<(a*b); break;
case '/': cout<<"\n Answer : "<<(a/b); break;
default : cout<<"\n Wrong input";
main(int a)
}
</pre>
<script type="text/javascript" src="https://cdn.statically.io/gh/blaregroup/HiliSyntax/master/js/HiliSyntax_Link.js"></script>
</body>
</html>