```javascript
/* This is highlighted Javascript! */
window.onload = function() {
var a = "hello, world!";
var b = 5;
};
```
```c
/* Highlighted C */
#include<stdio.h>
typedef struct {
int a;
} test;
```
```php
<?php
# highlighted PHP
function foo($a) {
$a = 'hello';
return $a;
}
?>
```
```python
# highlighted python
class test:
""" docstring """
def myfunc(foo,
bar):
if True or 1 > 0:
print "hello"
else
print test
from itertools import count
def generate_primes(stop_at=0):
primes = []
for n in count(2):
if 0 < stop_at < n:
return # raises the StopIteration exception
composite = False
for p in primes:
if not n % p:
composite = True
break
elif p ** 2 > n:
break
if not composite:
primes.append(n)
yield n
```
```html
<span class="foo">
<!-- try hovering over the entity! -->
HTML &
</span>
<style>
@media(screen and max-width: 25em) {
span.red {
color: red;
max-width: 10px;
}
}
</style>
<script>
function foo() {}
</script>
```
```css
/* This also highlights */
@import url(http://example.com);
span[data-test="foo"] > .bar {
color: red;
-moz-user-select: none;
width: 20em;
}
```
```ruby
# this is a simple ruby example
require 'test'
class Ok < Object
def foo(a)
if test.nil? || params[:whatever]
print "hi"
end
end
end
```
/* This is highlighted Javascript! */
window.onload = function() {
var a = "hello, world!";
var b = 5;
};
/* Highlighted C */#include<stdio.h>typedefstruct {
int a;
} test;
```javascript /* This is highlighted Javascript! */ window.onload = function() { var a = "hello, world!"; var b = 5; }; ``` ```c /* Highlighted C */ #include<stdio.h> typedef struct { int a; } test; ``` ```php <?php # highlighted PHP function foo($a) { $a = 'hello'; return $a; } ?> ``` ```python # highlighted python class test: """ docstring """ def myfunc(foo, bar): if True or 1 > 0: print "hello" else print test from itertools import count def generate_primes(stop_at=0): primes = [] for n in count(2): if 0 < stop_at < n: return # raises the StopIteration exception composite = False for p in primes: if not n % p: composite = True break elif p ** 2 > n: break if not composite: primes.append(n) yield n ``` ```html <span class="foo"> <!-- try hovering over the entity! --> HTML & </span> <style> @media(screen and max-width: 25em) { span.red { color: red; max-width: 10px; } } </style> <script> function foo() {} </script> ``` ```css /* This also highlights */ @import url(http://example.com); span[data-test="foo"] > .bar { color: red; -moz-user-select: none; width: 20em; } ``` ```ruby # this is a simple ruby example require 'test' class Ok < Object def foo(a) if test.nil? || params[:whatever] print "hi" end end end ```