Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Twig highlighter instead of Jinja #5859

Merged
merged 2 commits into from
Nov 7, 2015
Merged

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Nov 3, 2015

Pygments 2 supports the Twig highlighting language, which is (of course) closer to Twig than Jinja is.

Previously, we reverted one occurence of Twig in #5378 , because people might use older versions locally. I no longer think this is a good reason:

  • They can update the versions, Pygments 2 isn't that new
  • Now we have platform.sh and travis, building locally isn't recommended/required anymore (if it ever was)
Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed ticket -

This requires fabpot/sphinx-php#31 to be merged first. (and Pygments 2 to be available on symfony.com's server, but I think it already is /cc @javiereguiluz )

@javiereguiluz
Copy link
Member

👍 the new version of Sphinx has been released and the server should be ready (if not, I'll take care of it). Thanks for this improvement. Using anything different thatn twig felt unnatural to me.

@stof
Copy link
Member

stof commented Nov 5, 2015

Please retrigger the Travis and platform.sh builds now that the extension is updated to support Twig, to see whether it works fine

@wouterj
Copy link
Member Author

wouterj commented Nov 6, 2015

Everything works fine now

@xabbuh
Copy link
Member

xabbuh commented Nov 7, 2015

👍

@wouterj wouterj merged commit d116232 into symfony:2.3 Nov 7, 2015
wouterj added a commit that referenced this pull request Nov 7, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Use Twig highlighter instead of Jinja

Pygments 2 supports the Twig highlighting language, which is (of course) closer to Twig than Jinja is.

Previously, we reverted one occurence of Twig in #5378 , because people might use older versions locally. I no longer think this is a good reason:

 * They can update the versions, Pygments 2 isn't that new
 * Now we have platform.sh and travis, building locally isn't recommended/required anymore (if it ever was)

| Q | A
| --- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | 2.3+
| Fixed ticket | -

This requires fabpot/sphinx-php#31 to be merged first. (and Pygments 2 to be available on symfony.com's server, but I think it already is /cc @javiereguiluz )

Commits
-------

d116232 Fix formatting
57c2d4b Use Twig highlighter instead of Jinja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants