Nifty Website to Copy & Paste Code with Syntax Highlighting

This is cool.

(This is the "Dark Plus" theme, by the way.)


https://syntaxhighlighter.app/xml

<command name="restart" pattern="^restart$">
<script>
Ask (Template("WantRestartGame")){
if (result){
JS.eval("if(webPlayer){window.location.reload();}else if (typeof(RestartGame) != 'undefined'){RestartGame();}else{addTextAndScroll('Try pressing CTRL+R.')};")
}
else {
game.suppressturnscripts = true
}
}
</script>
</command>

https://syntaxhighlighter.app/csharp

Ask (Template("WantRestartGame")){
if (result){
JS.eval("if(webPlayer){window.location.reload();}else if (typeof(RestartGame) != 'undefined'){RestartGame();}else{addTextAndScroll('Try pressing CTRL+R.')};")
}
else {
game.suppressturnscripts = true
}
}

https://syntaxhighlighter.app/javascript

if(webPlayer){window.location.reload();}else if (typeof(RestartGame) != 'undefined'){RestartGame();}else{addTextAndScroll('Try pressing CTRL+R.')};

This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums