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
	```
1 /* This is highlighted Javascript! */
2 window.onload = function() {
3 	var a = "hello, world!";
4 	var b = 5;
5 };
1 /* Highlighted C */
2 #include<stdio.h>
3 typedef struct {
4 	int a;
5 } test;
1 <?php
2 	# highlighted PHP
3 	function foo($a) {
4 		$a = 'hello';
5 		return $a;
6 	}
7 ?>
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>
1 /* This also highlights */
2 @import url(http://example.com);
3 span[data-test="foo"] > .bar {
4 	color: red;
5 	-moz-user-select: none;
6 	width: 20em;
7 }
1 # this is a simple ruby example
2 require 'test'
3 class Ok < Object
4   def foo(a)
5     if test.nil? || params[:whatever]
6       print "hi"
7     end
8   end
9 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)

Meta

Suggestion Box / Bug Report