Nette + Latte + Neon
Latte and Neon syntax highlighting, code completions and Nette snippets for Sublime Text 3.
Details
Installs
- Total 3K
- Win 2K
- Mac 692
- Linux 626
Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
Nette + Latte + Neon for Sublime Text 3
Latte and Neon syntax highlighting, code completions and Nette snippets for Sublime Text 3.
Installation
Via Package Control:
- Press
Control + Shift + P
on Windows/Linux orCommand + Shift + P
on OS X - Search
Nette + Latte + NEON
- Press
Enter
- Complete!
Via Git:
- Go to your Sublime Text packages folder (In ST3
Preferences -> Browse Packages...
) git clone http://github.com/FilipStryk/Nette-Latte-Neon-for-Sublime-Text-3.git
- Complete!
Neon syntax highlighting
Available snippets:
persist
Persistent property
/**
* @persistent
* @var type
*/
public $property;
inject
Inject property
act
Action method
public function actionName()
{
}
ren
Render method
public function renderName()
{
}
hand
Handle method
public function handleName()
{
}
sup
Stratup method
protected function startup()
{
parent::startup();
}
con
Constructor that calls parent
public function __construct()
{
parent::__construct();
}
inject-method
Inject method
/**
* @param Service $service
*/
public function injectService(Service $service)
{
$this->service = $service;
}
form-component
Component factory with form definition
/**
* @return Nette\Application\UI\Form
*/
protected function createComponentForm()
{
$form = new Nette\Application\UI\Form;
$form->
$form->addSubmit('send', 'Odeslat');
$form->onSuccess[] = function (Nette\Application\UI\Form $form) {
$values = $form->getValues();
};
return $form;
}
form-control
Form control class
class SignInForm extends \Nette\Application\UI\Control
{
/**
* @return \Nette\Application\UI\Form
*/
protected function createComponentSignInForm()
{
$form = new \Nette\Application\UI\Form;
$form->
$form->addSubmit('send', 'Odeslat');
$form->onSuccess[] = ->signInFormSucceeded;
return $form;
}
/**
* @param \Nette\Application\UI\Form $form
* @param \Nette\Utils\ArrayHash $values
*/
public function SignInFormSucceeded(\Nette\Application\UI\Form $form, \Nette\Utils\ArrayHash $values)
{
}
}
ifa
Interface form factory
interface ISignInFormFactory
{
/**
* @return SignInForm
*/
function create();
}
kdel
Kdyby Events listener
class ApplicationListener extends \Nette\Object implements \Kdyby\Events\Subscriber
{
/**
* @var \Monolog\Logger
*/
private $logger;
/**
* @param \Monolog\Logger $logger
*/
public function __construct(\Monolog\Logger $logger)
{
$this->logger = $logger;
}
/**
* @return array
*/
public function getSubscribedEvents()
{
return [
'Nette\Application\Application::onStartup'
];
}
public function onStartup()
{
}
}
Completions:
Functions:
barDump
=>\Tracy\Debugger::barDump(var, title);
dump
=>\Tracy\Debugger::dump(var);
timer
=>\Tracy\Debugger::timer(name);
tlog
=>\Tracy\Debugger::log(message, priority);
flog
=>\Tracy\Debugger::fireLog(message);
Namespaces
Nette\Application
* n-a-c
=> Nette\Application\UI\Control
* n-a-f
=> Nette\Application\UI\Form
* n-a-p
=> Nette\Application\UI\Presenter
* n-a-re-c
=> Nette\Application\Responses\CallbackResponse
* n-a-re-fi
=> Nette\Application\Responses\FileResponse
* n-a-re-fo
=> Nette\Application\Responses\ForwardResponse
* n-a-re-j
=> Nette\Application\Responses\JsonResponse
* n-a-re-r
=> Nette\Application\Responses\RedirectResponse
* n-a-re-t
=> Nette\Application\Responses\TextResponse
* n-a-ro-c
=> Nette\Application\Routers\CliRouter
* n-a-ro-r
=> Nette\Application\Routers\Route
* n-a-ro-rl
=> Nette\Application\Routers\RouteList
* n-a-ro-sr
=> Nette\Application\Routers\SimpleRouter
Nette\Database
* n-d-con
=> Nette\Database\Connection
* n-d-ctx
=> Nette\Database\Context
Nette\Http
* n-h-ctx
=> Nette\Http\Context
* n-h-fu
=> Nette\Http\FileUpload
* n-h-h
=> Nette\Http\Helpers
* n-h-rq
=> Nette\Http\Request
* n-h-rs
=> Nette\Http\Response
* n-h-s
=> Nette\Http\Session
* n-h-url
=> Nette\Http\Url
Nette\Mail
* n-m-m
=> Nette\Mail\Message
* n-m-sm
=> Nette\Mail\SendmailMailer
* n-m-smtp
=> Nette\Mail\SmtpMailer
* n-m-im
=> Nette\Mail\IMailer
Nette\Security
* n-s-id
=> Nette\Security\Identity
* n-s-pass
=> Nette\Security\Passwords
* n-s-perm
=> Nette\Security\Permission
* n-s-us
=> Nette\Security\User
* n-s-iauthenticator
=> Nette\Security\IAuthenticator
* n-s-iauthorizator
=> Nette\Security\IAuthorizator
* n-s-iid
=> Nette\Security\IIdentity
* n-s-ire
=> Nette\Security\IResource
* n-s-iro
=> Nette\Security\IRole
* n-s-ius
=> Nette\Security\IUserStorage
* n-s-ae
=> Nette\Security\AuthenticationException
Nette\Utils
* n-u-ah
=> Nette\Utils\ArrayHash
* n-u-al
=> Nette\Utils\ArrayList
* n-u-ar
=> Nette\Utils\Arrays
* n-u-c
=> Nette\Utils\Callback
* n-u-dt
=> Nette\Utils\DateTime
* n-u-fs
=> Nette\Utils\FileSystem
* n-u-f
=> Nette\Utils\Finder
* n-u-h
=> Nette\Utils\Html
* n-u-i
=> Nette\Utils\Image
* n-u-j
=> Nette\Utils\Json
* n-u-p
=> Nette\Utils\Paginator
* n-u-r
=> Nette\Utils\Random
* n-u-s
=> Nette\Utils\Strings
* n-u-v
=> Nette\Utils\Validators
* n-o
=> Nette\Object