Syntax: HTML / XML

HTML Example


		
		
You can't see me...... or maybe you can?

Here is another example of using a mode-line. The mode-line must be on line 1 or 2 for it to be recognized:

<!DOCTYPE html>
<!--*- mode: html; tab-width: 4; -*-->

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>My Website</title>
</head>
<body>
	<p>Hello <?= "World" ?></p>
</body>
</html>

Here is an example of embedded instructions:

<!DOCTYPE html>

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>My Website</title>
</head>
<body>
	<p>Hello <?= h("World") ?>
	
	<p>Hello <%= h("ASP...!? WTF???") %>
	
	<?php
		// This will print Hello World!
		echo "Hello World!";
		setEndOfWorld("tomorrow");
	?>
	
	
	<?r if request[:bob] ?>
		<p>Hello Bob</p>
	<?r end ?>
</body>
</html>
	

CDATA sections

<description><![CDATA[
	<h1>Television</h1>

	<p>Brainwashing the masses.</p>
]]></description>
	

Apache Configuration (not quite HTML, but similar)

<VirtualHost *>
	# ... standard configuration ...
	# ServerName, DocumentRoot, etc

	# Root DAV which requires authentication to access:
	<Location "/MyFiles/">
		DAV on
		AuthType Digest
		AuthName "Digest Realm"
		AuthUserFile /etc/apache2/users/myfiles.htdigest
		Require user me

		<LimitExcept GET HEAD OPTIONS REPORT PROPFIND>
			Require user me
		</LimitExcept>
	</Location>

	# Specific folder which can be accessed anonymously (read-only)
	<Location "/MyFiles/Public/">
		<Limit GET HEAD OPTIONS REPORT PROPFIND>
			Allow from all
			Satisfy any
		</Limit>
	</Location>

	# Specific folder which can be accessed anonymously (read/write)
	<Location "/MyFiles/DropBox/">
		Allow from all
		Satisfy any
	</Location>
</VirtualHost>