Syntax highlighting
Syntax Highlighting, started in #78 (closed).
Merge request reports
Activity
mentioned in issue #78 (closed)
Not a major issue, but Pygments should get added to
requirements-to-freeze.txt
. It's currently getting installed by something else as a dependency, but if we ever ended up removing that "parent" package (whatever it is) that would cause the syntax highlighting to break since Pygments would no longer get installed. Adding it torequirements-to-freeze.txt
shows that it's a package we specifically need to install.- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
added 38 commits
-
a002d82d...d5fe6379 - 30 commits from branch
tildes:master
- a56c7e61 - Users can now mark used language in code blocks. It is passed to server in class…
- 264b18c0 - Used Pygments to add CSS classes to code
- 9a46d9dc - Added styles for syntax highlighting
- 565724dd - Fixed bug with no info string
- 4e7dc40a - Added Pygments to requirements-freeze and sorted imports
- 71c9dfaf - Unknown language no longer throws exception
- 44fe7983 - Tweaked highlighting colors
- 793c1e00 - Users can no longer add custom css classes to span and div elements
Toggle commit list-
a002d82d...d5fe6379 - 30 commits from branch
added 1 commit
- bd396f9b - Fixed git conflict in requirements-to-freeze
To have different highlighting for different themes, you'd need to put it inside the
_themes.scss
file: https://gitlab.com/tildes/tildes/blob/master/tildes/scss/_themes.scssYou could probably have it defined as a mixin in a separate file and just include it here, so that the huge block of styles doesn't need to be inside the
_themes.scss
file itself. I don't know if you want to try to set that up, but I can just do it in a follow-up commit if you want (switching to Solarized light/dark highlighting). If you do want to try, here are Pygments styles for light and dark: https://gist.github.com/nicolashery/5765395- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný
- Resolved by Petr Šťastný