Facebook Social Icon Twitter Social Icon YouTube Social Icon

Help:Spielwiese: Difference between revisions

From M.Eng. René Schwarz, Bremen/Merseburg
Jump to: navigation, search
No edit summary
No edit summary
 
Line 25: Line 25:
</script>
</script>
</pre>
</pre>
<html>
<object style="height: 390px; width: 640px"><param name="movie" value="http://www.youtube.com/v/_RNGRv__GFs?version=3"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/_RNGRv__GFs?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390"></object>
</html>

Latest revision as of 23:08, 15 January 2011

<!-- Include required JS files -->
<script type="text/javascript" src="js/shCore.js"></script>
 
<!--
    At least one brush, here we choose JS. You need to include a brush for every
    language you want to highlight
-->
<script type="text/javascript" src="css/shBrushJScript.js"></script>
 
<!-- Include *at least* the core style and default theme -->
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
 
<!-- You also need to add some content to highlight, but that is covered elsewhere. -->
<pre class="brush: js">
function foo()
{
}
</pre>
 
<!-- Finally, to actually run the highlighter, you need to include this JS on your page -->
<script type="text/javascript">
     SyntaxHighlighter.all()
</script>