Download it now!
Bug 80086 - Highlight syntax
Summary: Highlight syntax
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: WWW (show other bugs)
(earliest affected)
Hardware: All All
: medium trivial
Assignee: Not Assigned
Keywords: difficultyBeginner, easyHack, skillInfra
Depends on:
Blocks: 71761
  Show dependency treegraph
Reported: 2014-06-16 08:52 UTC by Dennis Roczek
Modified: 2015-12-16 00:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Roczek 2014-06-16 08:52:59 UTC
This is rather an easy easy hack:

There are many code snippets and scripts posted in the wiki providing help for developers and maintainers. These code snippets should be highlighted by using the wiki-internal syntax highlight with the <source> tag. Posted source code is mostly using the <pre> tags or whitespace in front of the code.

Example edit:

A list of supported languages can be found at
Comment 1 sehgalvibhor 2015-03-04 09:30:41 UTC

I'd like to work on this bug. But which all wiki pages i need to edit ? Can a list of links be provided? I have read the example edit and understood what needs to be done.
Comment 2 Dennis Roczek 2015-03-04 10:14:43 UTC
Well, that's the tricky part of that "EasyHack": we simply don't have a list. We simply cannot search for <pre> in mediawikis own search engine nor we are able to search for it using google (Or at least as far as I know). The only solution would be to get a list of pages by a scan of a database dumb (by using e.g. AWB).

If you find an extension or any other possibility, I might install anything if that helps.

Otherwise this task includes much manual searching... :-(
Comment 3 sehgalvibhor 2015-03-04 12:49:35 UTC
Haha. Sweet ! Okay, I would like to try this manually then. What about the privileges to edit the wiki page? Will you grant them ?
Comment 4 Dennis Roczek 2015-03-04 13:52:29 UTC
simply create an account at and you have edit rights.

You might get (because of our actual configuration) warnings about getting blocked if you create too many edits in a too short time. Ignore that and wait e.g. a day if hitting these warnings too often. ;-)
Comment 5 sehgalvibhor 2015-03-04 14:02:03 UTC
Ohh. Okay. I have got the list of all the pages , and there a lot of them. I'll start editing and respond back when all pages are done. 
Comment 6 sehgalvibhor 2015-03-04 19:02:14 UTC
What should be the source language of the script which is being displayed on git. for example:
has a pre tag , what will be the source tage for these types?
Comment 7 Dennis Roczek 2015-03-09 18:19:06 UTC
(In reply to sehgalvibhor from comment #6)
> What should be the source language of the script which is being displayed on
> git. for example:
> has a pre tag , what will be the source tage for these types?

good question. The git output in the pre tags is actually not "converable" to use highlight. the lines like
   > git bisect log
can be transformed to
<syntaxhighlight language="bash">
git bisect log
Comment 8 Dennis Roczek 2015-03-27 10:04:34 UTC
another example just found:
Comment 9 Dennis Roczek 2015-06-28 07:36:46 UTC
ticket moved to redmine
Comment 10 Robinson Tryon (qubit) 2015-12-16 00:16:30 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillInfra TopicWiki)