src/help/docs/HelpersController.php
public function code($arguments = 'php')
	{
		$params =
		[
			'php'      => [
				'desc' => 'raw PHP',
				'func' => 'output',
				'args' => ['$a + $b === 100 ? true : false']
			],
			'js'       => [
				'desc' => 'raw JavaScript',
				'func' => 'output',
				'args' => ['a + b === 100 ? true : false', 'javascript']
			],
			'file'     => [
				'desc' => 'this file',
				'func' => 'file',
				'args' => [__FILE__]
			],
			'section'  => [
				'desc' => 'lines 17 - 44 of this file',
				'func' => 'section',
				'args' => [__FILE__, 18, 45]
			],
			'sectionu' => [
				'desc' => 'lines 17 - 44 of this file (without indent)',
				'func' => 'section',
				'args' => [__FILE__, 18, 45, true]
			],
			'class'    => [
				'desc' => 'this class',
				'func' => 'classfile',
				'args' => [__CLASS__]
			],
			'classc'   => [
				'desc' => 'this class (with doc-comment)',
				'func' => 'classfile',
				'args' => [__CLASS__, true]
			],
			'method'   => [
				'desc' => 'this method',
				'func' => 'method',
				'args' => [__CLASS__, 'code']
			],
			'methodc'  => [
				'desc' => 'this method (with doc-comment)',
				'func' => 'method',
				'args' => [__CLASS__, 'code', true]
			],
		];
		$data = $params[$arguments];
		$data['signature'] = Code::signature($data['args']);
		return view('sketchpad::help/helpers/code', $data);
	}
public function code($arguments = 'php')
	{
		$params =
		[
			'php'      => [
				'desc' => 'raw PHP',
				'func' => 'output',
				'args' => ['$a + $b === 100 ? true : false']
			],
			'js'       => [
				'desc' => 'raw JavaScript',
				'func' => 'output',
				'args' => ['a + b === 100 ? true : false', 'javascript']
			],
			'file'     => [
				'desc' => 'this file',
				'func' => 'file',
				'args' => [__FILE__]
			],
			'section'  => [
				'desc' => 'lines 17 - 44 of this file',
				'func' => 'section',
				'args' => [__FILE__, 18, 45]
			],
			'sectionu' => [
				'desc' => 'lines 17 - 44 of this file (without indent)',
				'func' => 'section',
				'args' => [__FILE__, 18, 45, true]
			],
			'class'    => [
				'desc' => 'this class',
				'func' => 'classfile',
				'args' => [__CLASS__]
			],
			'classc'   => [
				'desc' => 'this class (with doc-comment)',
				'func' => 'classfile',
				'args' => [__CLASS__, true]
			],
			'method'   => [
				'desc' => 'this method',
				'func' => 'method',
				'args' => [__CLASS__, 'code']
			],
			'methodc'  => [
				'desc' => 'this method (with doc-comment)',
				'func' => 'method',
				'args' => [__CLASS__, 'code', true]
			],
		];
		$data = $params[$arguments];
		$data['signature'] = Code::signature($data['args']);
		return view('sketchpad::help/helpers/code', $data);
	}
public function code ( $ arguments = 'php' ) { $ params = [ 'php' => [ 'desc' => 'raw PHP' , 'func' => 'output' , 'args' => [ '$a + $b === 100 ? true : false' ] ] , 'js' => [ 'desc' => 'raw JavaScript' , 'func' => 'output' , 'args' => [ 'a + b === 100 ? true : false' , 'javascript' ] ] , 'file' => [ 'desc' => 'this file' , 'func' => 'file' , 'args' => [ __FILE__ ] ] , 'section' => [ 'desc' => 'lines 17 - 44 of this file' , 'func' => 'section' , 'args' => [ __FILE__ , 18 , 45 ] ] , 'sectionu' => [ 'desc' => 'lines 17 - 44 of this file (without indent)' , 'func' => 'section' , 'args' => [ __FILE__ , 18 , 45 , true ] ] , 'class' => [ 'desc' => 'this class' , 'func' => 'classfile' , 'args' => [ __CLASS__ ] ] , 'classc' => [ 'desc' => 'this class (with doc-comment)' , 'func' => 'classfile' , 'args' => [ __CLASS__ , true ] ] , 'method' => [ 'desc' => 'this method' , 'func' => 'method' , 'args' => [ __CLASS__ , 'code' ] ] , 'methodc' => [ 'desc' => 'this method (with doc-comment)' , 'func' => 'method' , 'args' => [ __CLASS__ , 'code' , true ] ] , ] ; $ data = $ params [ $ arguments ] ; $ data [ 'signature' ] = Code :: signature ( $ data [ 'args' ] ) ; return view ( 'sketchpad::help/helpers/code' , $ data ) ; }
Output code with formatting and html entities converted

@field select $arguments options:Raw PHP=php,Raw JavaScript=js,File=file,Section=section,Section (without indent)=sectionu,Class=class,Class (with doc-comment)=classc,Method=method,Method (with doc-comment)=methodc
Output code with formatting and html entities converted