Last active
September 5, 2016 05:11
-
-
Save milligramme/b4ea6001992fcbbec62d6071d03d3424 to your computer and use it in GitHub Desktop.
tm broken preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Running “hello.go”…</title> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 50957;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
Program exited with cProgram exited with code #0 after 0.26 seconds.</div></div> </div> | |
</body> | |
</html>yOutput(document.getElementById('_executor_output'))">copy output</a></div><div id="exception_report" class="framed">Program exited with code #0 after 0.26 seconds.</div></div> </div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Running “hello.go”…</title> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 50975;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
<div class="controls"<div class="controls"><div id="copytime"></div> <a href="#" onclick="copyOutput(document.getElementById('_executor_output'))">copy output</a></div><div id="exception_report" class="framed">Program exited with code #0 after 0.26 seconds.</div></div> </div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Running “hello.go”…</title> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 51022;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
</div></div> </div> | |
</div></div> </div> | |
</body> | |
</html>ime"></div> <a href="#" onclick="copyOutput(document.getElementById('_executor_output'))">copy output</a></div><div id="exception_report" class="framed">Program exited with code #0 after 0.25 seconds.</div></div> </div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Running “hello.go”…</title> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 51098;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
</div> | |
</body> | |
</ht </div> | |
</body> | |
</html>iv id="copytime"></div> <a href="#" onclick="copyOutput(document.getElementById('_executor_output'))">copy output</a></div><div id="exception_report" class="framed">Program exited with code #0 after 0.25 seconds.</div></div> </div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Running “hello.go”…</title> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 51128;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
</div> | |
</body> | |
</html>_report" class="framed">Program exited with code #0 after 0.62 seconds.</div></div>tput(document.getElementById('_executor_output'))">copy output</a> </div> | |
</body> | |
</html>_report" class="framed">Program exited with code #0 after 0.62 seconds.</div></div> </div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
tion%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny/style.css" type="text/css" charset="utf-8" media="screen"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Scott%20Web%20Preview%20Theme.tmbundle/Support/scott/print.css" type="text/css" charset="utf-8" media="print"> | |
<link rel="stylesheet" href="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/default/print.css" type="text/css" charset="utf-8" media="print"> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/default.js" type="text/javascript" charset="utf-8"></script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/webpreview.js" type="text/javascript" charset="utf-8"></script> | |
<script>var image_path = "file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/images/";</script> | |
<script src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Bundle%20Support.tmbundle/Support/shared/script/sortable.js" type="text/javascript" charset="utf-8"></script> | |
<!-- executor javascripts --> | |
<script type="text/javascript" charset="utf-8"> | |
function press(evt) { | |
if (evt.keyCode == 67 && evt.ctrlKey == true) { | |
TextMate.system("kill -s USR1 51163;", null); | |
evt.preventDefault(); | |
} | |
} | |
function click(evt) { | |
if (event.target.tagName == 'A') { | |
var line = event.target; | |
while (line && !line.classList.contains('line')) line = line.parentElement; | |
if (line) { | |
Array.from(document.getElementsByClassName('line current')).forEach(function (el) { | |
el.classList.remove('current'); | |
}); | |
line.classList.add('current'); | |
} | |
} | |
} | |
function copyOutput(element) { | |
output = element.innerText.replace(/(?:^| ) +/mg, function(match, offset, s) { return match.replace(/ /g, ' '); }); | |
cmd = TextMate.system('/usr/bin/pbcopy', function(){}); | |
cmd.write(output); | |
cmd.close(); | |
document.getElementById('copytime').innerText = 'output copied to clipboard'; | |
} | |
</script> | |
<!-- end javascript --> | |
<style type="text/css"> | |
div.executor .controls { | |
text-align:right; | |
float:right; | |
} | |
div.executor .controls a { | |
text-decoration: none; | |
} | |
div.executor pre em | |
{ | |
font-style: normal; | |
color: #FF5600; | |
} | |
div.executor p#exception strong | |
{ | |
color: #E4450B; | |
} | |
div.executor p#traceback | |
{ | |
font-size: 8pt; | |
} | |
div.executor blockquote { | |
font-style: normal; | |
border: none; | |
} | |
div.executor table { | |
margin: 0; | |
padding: 0; | |
} | |
div.executor td { | |
margin: 0; | |
padding: 2px 2px 2px 5px; | |
font-size: 10pt; | |
} | |
div.executor div#_executor_output { | |
white-space: normal; | |
-khtml-nbsp-mode: space; | |
-khtml-line-break: after-white-space; | |
} | |
div#_executor_output .line.current { | |
background: rgba(255, 240, 80, 0.25); | |
outline: 1px solid rgba(255, 240, 80, 0.25); | |
} | |
div#_executor_output .out { | |
} | |
div#_executor_output .err { | |
color: red; | |
} | |
div#_executor_output .test { | |
font-weight: bold; | |
} | |
div#_executor_output .test.ok { | |
color: green; | |
} | |
div#_executor_output .test.fail { | |
color: red; | |
} | |
div#exception_report pre.snippet { | |
margin:4pt; | |
padding:4pt; | |
} | |
div#copytime { | |
font-size: 10pt; | |
float:left; | |
display:inline; | |
} | |
</style> | |
</head> | |
<body id="tm_webpreview_body" class="plain"> | |
<div id="tm_webpreview_header"> | |
<img id="gradient" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/header.png" alt="header"> | |
<p class="headline">Running “hello.go”…</p> | |
<p class="type">go1.7 darwin/amd64 | |
</p> | |
<img id="teaser" src="file:///Users/gdansk/Library/Application%20Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain/images/teaser.png" alt="teaser"> | |
<div id="theme_switcher"> | |
<form action="#" onsubmit="return false;"> | |
<div> | |
Theme: | |
<select onchange="selectTheme(event);" id="theme_selector"> | |
<option value="bright" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/bright">Bright</option> | |
<option value="dark" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/dark">Dark</option> | |
<option value="halloween" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/halloween">Halloween</option> | |
<option value="night" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/night">Night</option> | |
<option value="plain" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/plain">Plain</option> | |
<option value="scott" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Scott Web Preview Theme.tmbundle/Support/scott">Scott</option> | |
<option value="shiny" title="/Users/gdansk/Library/Application Support/TextMate/Managed/Bundles/Themes.tmbundle/Support/web-themes/shiny">Shiny</option> | |
</select> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('theme_selector').value = 'plain'; | |
</script> | |
</form> | |
</div> | |
</div> | |
<div id="tm_webpreview_content" class="plain"> | |
<div class="executor"><!-- » /usr/local/bin/go run hello.go --> | |
<script type="text/javascript" charset="utf-8"> | |
document.body.addEventListener("keydown", press, false); | |
document.body.addEventListener("click", click) | |
</script> | |
<!-- first box containing version info and script output --> | |
<pre> | |
<div id="_executor_output" > <!-- Script output --> | |
<div class='line'>Hello<br> | |
</div> | |
Program exited with cProgram exited with code #0 after 0.25 seconds.</div></div><a href="#" onclick="copyOutput(document.getElementById('_executor_output'))">copy output</a></div><div id="exception_report" class="framed">Program exited with code #0 after 0.25 seconds.</div></div> </div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment