adrdox.highlight

	```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 &amp;
	</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>
typedef struct {
	int a;
} test;
<?php
	# highlighted PHP
	function foo($a) {
		$a = 'hello';
		return $a;
	}
?>
1 	# highlighted python
2 class test:
3 """ docstring """ 4 def myfunc(foo, 5 bar):
6 if True or 1 > 0:
7 print "hello"
8 else
9 print test 10 11
12 from itertools import count 13 14 def generate_primes(stop_at=0):
15 primes = [] 16 for n in count(2):
17 if 0 < stop_at < n:
18 return # raises the StopIteration exception
19 composite = False 20 for p in primes:
21 if not n % p:
22 composite = True 23 break
24 elif p ** 2 > n:
25 break
26 if not composite:
27 primes.append(n) 28 yield n
1 <span class="foo">
2 	<!-- try hovering over the entity! -->
3 	HTML &amp;
4 </span>
5 <style>
6 	@media(screen and max-width: 25em) {
7 		span.red {
8 			color: red;
9 			max-width: 10px;
10 		}
11 	}
12 </style>
13 <script>
14 	function foo() {}
15 </script>
/* This also highlights */
@import url(http://example.com);
span[data-test="foo"] > .bar {
	color: red;
	-moz-user-select: none;
	width: 20em;
}
# this is a simple ruby example
require 'test'
class Ok < Object
  def foo(a)
    if test.nil? || params[:whatever]
      print "hi"
    end
  end
end

Public Imports

std.stdio
public import std.stdio;

this is public import

foo
public import foo = std.file;

Members

Aliases

Vector
alias Vector = LongThing!(1, 2)

Functions

a
void a(Vector b)

Structs

LongThing
struct LongThing(int a, int b)
Suggestion Box / Bug Report