File: test.htm

package info (click to toggle)
kf6-syntax-highlighting 6.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,200 kB
  • sloc: xml: 210,435; cpp: 12,977; python: 3,281; sh: 965; perl: 813; ruby: 494; pascal: 393; javascript: 161; php: 159; haskell: 141; jsp: 132; lisp: 131; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; exp: 61; erlang: 54; sql: 51; java: 47; sed: 45; objc: 37; tcl: 36; awk: 31; asm: 30; fortran: 18; cs: 10
file content (259 lines) | stat: -rw-r--r-- 6,225 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>This is a title with <a> or <!-- comment --> has normal text</title>
    <style>
    /* comment */
    #xyz { color: red; }
    h1 { font: "Comic Sans"; }
    </style>
  </head>
  <body class="ui main">
    <p *ngFor="let name of names">Hello, {{ name }}!</p>
  </body>

  <!-- JavaScript code -->
  <script>
    document.body.appendChild(document.createTextNode('Hello World!')); // comment
  </script>

  <!-- TypeScript code -->
  <script type="text/typescript">
    class Student {
        fullName: string;
        constructor(public firstName: string, public middleInitial: string, public lastName: string) {
            this.fullName = firstName + " " + middleInitial + " " + lastName;
        }
    }
    let a: null = null;
    let b: number = 12_3;
  </script>

  <!-- JSX code -->
  <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
  <script type="text/babel">
    ReactDOM.render(
      <h1>Hello, world!</h1>,
      document.getElementById('root')
    );
    function Story(props) {
      const SpecificStory = components[props.storyType];
      return <SpecificStory story={ props.story } attr2="&ref;" attr3="Hello\n" />;
    }
  </script>

  <!-- Mustache/Handlebars -->
  <script type="x-tmpl-mustache">
    {{#movie}}
        <div>
            <h1>{{title}}</h1>
            <img src="{{poster}}" alt="{{title}}"/>
        </div>
        <div>
            Rating - {{ratings.critics_rating}}
        </div>
    {{/movie}}
    {{^movie}}
        <div>
            Movie Does Not Exist :(
        </div>
    {{/movie}}
    {{! comment }}
  </script>

  <!-- HTML template -->
  <script type="text/html">
    <li><a href="link">Hello</a></li>
  </script>

  <!-- Close the block correctly after "?" in the JavaScript highlighter -->
  <script>
    ?
  </script>

</html>
<!--

HTML Syntax Highlight Sample File (Standard)

- Follow HTML5 standard.
- Contain some valid, but not recommended syntax.
- Can be rendered by modern web browsers.

@author Guo Yunhe guoyunhebrave@gmail.com
@date   2016-09-17

-->

<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<title>HTML Syntax Highlight Sample File (Standard)</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>

<body>

<!-- HTML5 defined elements -->

<div>
    This is a div. <span>This is a span</span>
    <div>
        This is a div.
    </div>
</div>

<p>
    This is a paragraph. <em></em>
</p>

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

<a href="http://www.w3schools.com">This is a link</a>

<br>

<img src="http://placehold.it/200x150" alt="This is an image" width="200" height="150">

<hr>

<ul>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
</ul>

<ol>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
    <li>List item</li>
</ol>

<table>
    <tr>
        <th>Table head</th>
        <th>Table head</th>
        <th>Table head</th>
    </tr>
    <tr>
        <td>Table head</td>
        <td>Table head</td>
        <td>Table head</td>
    </tr>
</table>

<form>
    <input type="email" name="author"/>
    <input type="text" name="message"/>
    <button type="button">Send</button>
</form>

<main>
    <header>This is a header.</header>

    <nav>This is a nav.</nav>

    <article>
        <h2>This is an article.</h2>
        <p>This is an article.</p>
    </article>

    <aside>
        <h2>This is an aside.</h2>
    </aside>

    <footer></footer>

</main>

<!-- CDATA only in <math> and <svg> -->

<![CDATA[x<y]]> <!-- no CDATA, is a comment -->
<math>
 <ms><![CDATA[x<y]]></ms> <!-- CDATA -->
</math>

<!--> no commment --> bla
<!---> no commment --> bla
<!---->  bla
<!-- commment --> bla
<!ENTITY bad commment> bla
<? bad commment ?> bla

<!-- entity -->
&notit; <!-- 'notit' is not valid -->
&notit <!-- 'not' is entity with optional semicolon -->
&lt;

<!-- Custom elements -->

<booklist>
    <book>
        <booktitle>Just For Fun: The Story of an Accidental Revolutionary</booktitle>
        <author>Linus Torvalds</author>
        <description
            class="featured" title="Click to read full text...">
            A humorous autobiography of Linus Torvalds, the creator of the Linux
            kernel, co-written with David Diamond. The book primarily theorizes
            the Law of Linus that all evolution contributed by humanity starts
            for survival, sustains socially and entertains at last. As well as
            this the book explains Torvalds' view of himself, the free software
            movement and the development of Linux.</description>
    </book>
</booklist>

<large-space/>

<!-- Ends for single tag elements -->
<br>
<br/>
<br />
<br></br>

<!-- Uppercase elements -->

<DIV>
    THIS IS A DIV.
    <P>THIS IS A PARAGRAPH.</P>
    <H2>THIS IS A HEADING.</H2>
</DIV>

<!-- Arrtibutes -->

<a href="#" style="background-color:rgba(0,0,0,0.3)" title="Click me">Magic button</a>

<img src="http://placehold.it/200x150" alt="This is an image" width="200"
     height="150" title="This is an image">

<!-- Attribute without value -->

<select>
    <option selected>GNU/Linux</option>
    <option>BSD</option>
    <option>Windows</option>
    <option>macOS</option>
</select>

<!-- Attribute without quotes -->

<div id=name class=a-sweet-block data-counter=175>This is a div.</div>

<input value=abc&amp;def/>

</body>

</html>