-
Notifications
You must be signed in to change notification settings - Fork 5
Writing code
Southparkfan edited this page Oct 23, 2014
·
3 revisions
A small tutorial about writing Wikiportret code.
Wikiportret uses the Allman style. Wikiportret also has begin & end statements (PHP and HTML tags) indented on the same line.
Good:
<?php include 'header.php'; ?> <div id="content"> <h2>Dingen</h2> <?php if (!$dingen) { echo "Hallo!"; } ?> </div> <?php include 'footer.php'; ?>
Bad:
<?php include 'header.php'; ?> <div id="content"> <h2>Dingen</h2> <?php if (!$dingen) { echo "Hallo!"; } ?> </div> <?php include 'footer.php'; ?>