Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
[about-php] title = About PHP file = about-php weight = -10 [history] title = History of PHP file = history parent = about-php [usage] title = Usage of PHP file = usage weight = 1 [security] title = Security of PHP file = security weight = 2 [syntax] title = PHP syntax file = syntax parent = usage // New format: help[about-php][title] = About PHP help[about-php][file] = about-php help[about-php][weight] = -10 help[history][title] = History of PHP help[history][file] = history help[history][parent] = about-php help[usage][title] = Usage of PHP help[usage][file] = usage help[usage][weight] = 1 help[security][title] = Security of PHP help[security][file] = security help[security][weight] = 2 help[syntax][title] = PHP syntax help[syntax][file] = syntax help[syntax][parent] = usage // PHP format function help_example_help_soc() { return array( 'about-php' => array( 'title' => t('About PHP'), 'file' => 'about-php', 'weight' => -10, ), 'history' => array( 'title' => t('History of PHP'), 'file' => 'history', 'parent' => 'about-php', ), 'usage' => array( 'title' => t('Usage of PHP'), 'file' => 'usage', 'weight' => 1, ), 'security' => array( 'title' => t('Security of PHP'), 'file' => 'security', 'weight' => 2, ), 'syntax' => array( 'title' => t('PHP syntax'), 'file' => 'syntax', 'parent' => 'usage', ), ); }
From the Design Piracy series on my blog: