PFSenseDevWiki : DeveloperRules

PfSenseDevHome :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2008-04-26 20:17:54 by GeekGod

Additions:
} else {

Deletions:
else {



Oldest known version of this page was edited on 2007-08-18 23:32:36 by ChrisBuechler []
Page view:

Developer Rules



HTML Specific Rules


Note: Wrong HTML code is broken code. To break the code isn't allowed. A C compiler for example would complain in most cases if you break the code syntactically. So just because most browser are ignoring wrong code does not mean that you are not in charge to fix the code you did break.

pfSense uses the XHTML doctype in its webGUI code. The doctype enforces you to code against the following ruleset:


It's possible to syntax check you code in Firefox with the HTML validator plugin. Or you can simple use the W3C validator. The latter is supported by Opera even for RFC 1918 networks. Validom is a validator, thatdoes not validate against SGML. The validome guys do pretend, that this produces better results.

PHP Specific Rules


Rule #1:

General rules

Indent style

config.xml

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.0697 seconds