Google Prettyprint

Prettify code highlighter

Code Highlighter

public class Hello {
      public static void main(String args) {
        System.out.println(“Hello World!”);
      }
    }

Code Highlighter 2

list numbers = [1, 2, 3, 4, 5];
default
{
    state_entry()
    {
        integer index = llListFindList(numbers, [3]);
        if (index != -1)
        {
            list three_four = llList2List(numbers, index, index + 1);
            llOwnerSay(llDumpList2String(three_four, “,”));
            // Object: 3,4
        }
    }
}

Code Highlighter 3

<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>-->

Code Highlighter 4

HTML Comments
<!--- sdsdsdsdsds --->
<!--- sdsdsdsdsds --->
<!--- sdsdsdsdsds --->
<!--- sdsdsdsdsds --->
PHP CSS AND JS Comments
/*asdasd asdasd asdasd
asdasd asdasd asdasds?sdsd*/

/*echo'<div class="a" id="a">Content for  class "a" id "a" Goes Here</div>';*/ 

PHP AND JS Comments
//sdsdsdsddsdsd

PHP AND JS Comments
#sdsdsds?sdsd

PHP Comments
<?php #echo'<div class="a" id="a">Content for  class "a" id "a" Goes Here</div>'; ?>

<?php //echo'<div class="a" id="a">Content for  class "a" id "a" Goes Here</div>'; ?>

<?php /*echo'<div class="a" id="a">Content for  class "a" id "a" Goes Here</div>';*/ ?>

<?php /*?><?php echo'<div class="a" id="a">Content for  class "a" id "a" Goes Here</div>'; ?><?php */?>

Code Highlighter 5

<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>

Code Highlighter 6

#comment_list  {
	padding:0;
	margin:0;
}
#comment_list li {
	width: 680px;
	color: black;
	font-size: 12px;
	padding:10px 0px;
	display: block;
	border:solid 1px transparent;
	position:relative;
}
#comment_list li ul {
}

Code Highlighter 7

<html>
  <head>
<style></style>
<style>
#aol {
	color:#000;
}
#aol > a:not(.a) {
	color:#000;
}
.aol ul li {
	color:#000;
}
.aol {
	color:#000;
}
</style>
<style type="text/css"></style>
<style type="text/css">
#aol {
	color:#000;
}
#aol > a:not(.a) {
	color:#000;
}
.aol ul li {
	color:#000;
}
.aol {
	color:#000;
}
</style>
<script></script>
<script src="../../google-code-prettify/lang-go.js"></script>
<script type="text/javascript"></script>
<script type="text/javascript" src="../../google-code-prettify/lang-go.js"></script>

    <title><?= 'Fibonacci numbers' ?></title>

    <?php
      // PHP has a plethora of comment types
      /* What is a
         "plethora"? */
      function fib($n) {
        # I don't know.
        $a = 1;
        $b = 1;
        while (--$n >= 0) {
          echo "$a\n";
          $tmp = $a;
          abs();
          $a += $b;
          $b = $tmp;
        }
      }
    ?>
  </head>
  <body>
    <?= fib(10) ?>
  </body>
</html>

Code Highlighter 8

#comment_list  {
	padding:0;
	margin:0;
}
#comment_list li {
	width: 680px;
	color: black;
	font-size: 12px;
	padding:10px 0px;
	display: block;
	border:solid 1px transparent;
	position:relative;
}
#comment_list li ul {
}

Code Highlighter9

[rawcode]
<html>
[/rawcode]
[rawcode]
<html>
[/rawcode]

Student at The Dan Marino Foundation I love to create music, design websites, and repair computers. I enjoy studying new technology and putting my skills to the test.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: