Page MenuHomePhabricator

Setup check to install/enable pygments
ClosedPublic

Authored by fabe on Dec 29 2014, 9:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 6:54 AM
Unknown Object (File)
Thu, Apr 25, 1:20 AM
Unknown Object (File)
Fri, Apr 19, 6:57 AM
Unknown Object (File)
Apr 4 2024, 12:45 AM
Unknown Object (File)
Mar 28 2024, 4:54 AM
Unknown Object (File)
Mar 24 2024, 9:25 PM
Unknown Object (File)
Mar 24 2024, 8:25 PM
Unknown Object (File)
Mar 20 2024, 8:20 PM
Subscribers

Details

Summary

Fixes T6533 - actively prompt the user to install and enable pygments

Test Plan

uninstalled / disabled pygments and checked setup checks

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

fabe retitled this revision from to Setup check to install/enable pygments.
fabe updated this object.
fabe edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Minor wordsmithing/etc.

src/applications/config/check/PhabricatorSetupCheckPygment.php
53–59

Just pht() the whole string, including "\n"'s, e.g.:

pht(
  "Blah blah.\n".
  "Blah blah blah.");

As written, this will make the first sentence translatable to other languages but the last two untranslatable.

54–59

Phabicator can only highlight some languages without Pygments, so maybe this would be clearer with a name like:

Install Pygments to Improve Syntax Highlighting

...and a message like:

Phabricator can highlight a few languages by default, but installing and enabling Pygments (a third-party highlighting tool) will add syntax highlighting for many more languages.

For instructions on installing and enabling Pygments, see the `pygments.enabled` configuration option.

(It doesn't have very good instructions right now, but I can fix that.)

This revision now requires changes to proceed.Dec 29 2014, 5:37 PM
fabe edited edge metadata.

changed wording

epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 29 2014, 5:49 PM
This revision was automatically updated to reflect the committed changes.