Files
compiler-explorer/test/embedding.html
Matt Godbolt 624c5c026e Update npm dependencies and fix tom-select type import (#8477)
Inline the escape_html type instead of importing from tom-select's
internal dist/types/ path, which was removed in v2.5.1. The type is just
(str: string) => string, so there's no need to depend on the package's
internal file layout.

Also fix missing iframe title attributes in test/embedding.html.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 15:12:07 -06:00

24 lines
961 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Embedding test</title>
</head>
<body>
<div>Test; here's some inline Compiler Explorer stuff:</div>
<iframe
title="Compiler Explorer embedded view"
width="800px"
height="200px"
src="http://localhost:10240/e#source:'int+main()%7B%7D',compiler:g44,options:'-O2',filters:'colouriseAsm,intel,commentOnly,directives,labels,compileOnChange'"
></iframe>
</body>
<div>And here's some text after</div>
<iframe
title="Compiler Explorer embedded view"
width="800px"
height="200px"
src="http://localhost:10240/e#compiler:/usr/bin/g%2B%2B,filters:'colouriseAsm,readOnly,labels,directives,commentOnly,intel',options:'-O2',source:'//+Type+your+code+here,+or+load+an+example.%0Aint+square(int+num)+%7B%0A++++return+num+*+num%3B%0A%7D%0A'"
></iframe>
</html>