Skip to content

Instantly share code, notes, and snippets.

View wouterj's full-sized avatar

Wouter de Jong wouterj

View GitHub Profile
autocmd FileType rst setlocal textwidth=78
autocmd Filetype markdown setlocal textwidth=78
@wouterj
wouterj / doc.md
Last active June 3, 2022 12:54
A better syntax highlighting for ReStructured Text in Vim.

Installation

To install this highlighter, copy past the vim.rst file into .vim/syntax (or vimfiles\syntax if you're on windows).

Development Phrase

Please note that this highlighter is currently in development phrase, it's not fully tested and can be buggy sometimes.

<?php
use Symfony\Component\Stopwatch\Stopwatch;
class StopwatchExtension extends Twig_Extension
{
private $stopwatch;
public function __construct(Stopwatch $stopwatch = null)
{
<?php
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class StudentType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
// ...
1.1
- website's verstaanbaar? Misschien bedoel je "begrijpen"?
- door middel => doormiddel
- "... alle nieuwe technieken die ik geleerd heb de afgelopen jaar" => "alle nieuwe technieen die ik het afgelopen jaar geleerd heb"
1.4
- "onder andere het woord framework zal" => "onder andere het woord "framework" zal"
- ZEND is niks, je bedoelt "Zend Framework"
2.1
<?php
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MyCommand extends Command
{
public function configure()
sonata_doctrine_phpcr_admin:
document_tree:
Doctrine\ODM\PHPCR\Document\Generic:
valid_children:
- all
Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page: ~
Symfony\Cmf\Bundle\RoutingBundle\Document\Route:
valid_children:
- Symfony\Cmf\Bundle\RoutingBundle\Document\Route
- Symfony\Cmf\Bundle\RoutingBundle\Document\RedirectRoute
@wouterj
wouterj / mapping.md
Created September 12, 2013 17:19
Big Symfony CMF documentation remapping
From To
getting_started/index.html book/index.html
getting_started/installing_symfony_cmf.html book/installation.html
getting_started/routing.html book/routing.html
getting_started/simplecms.html book/simplecms.html
getting_started/content.html book/static_content.html
getting_started/menu.html book/structuring_content.html
bundles/routing.html bundles/routing/introduction.html
cookbook/using_a_custom_route_repository.html bundles/routing/custom_repository.html
<?php
// ...
class FeatureContext extends MinkContext
{
protected $guestsName;
// ...
/**

With Git

Setup

You have 2 remotes:

$ git remote add wouterj https://github.com/WouterJ/symfony-cmf-docs

$ git remote add origin https://github.com/symfony-cmf/symfony-cmf-docs