Bug 115663 - [NEWHELP] Implement BASIC color scheme for BASIC examples
Summary: [NEWHELP] Implement BASIC color scheme for BASIC examples
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
(earliest affected)
Hardware: All All
: medium enhancement
Assignee: Olivier Hallot
Whiteboard: target:6.3.0
Depends on:
Blocks: New-Help
  Show dependency treegraph
Reported: 2018-02-12 20:11 UTC by Olivier Hallot
Modified: 2018-11-29 23:02 UTC (History)
1 user (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 Olivier Hallot 2018-02-12 20:11:12 UTC
BASIC examples in helpcontent2 New Help should be displayed with color scheme similar to the Basic IDE.

The bug aims to implement the color scheme inside the XSLT that render the HTML pages.

Steps to Reproduce:

Actual Results:  
BASIC code is rendered in black

Expected Results:
Colored BASIC code that indicates reserved keywords, strings, arguments, etc..

Reproducible: Always

User Profile Reset: No

Additional Info:
1) the coloring transformation/template should be applied only inside the <bascode></bascode> tags in online_transform.xsl.

2) The color scheme is to be implemented with <span></span> around the keywords.

3) Implement <span> with CSS. Add classes to default.css

4) Old help has this implemented but with a C++ class

User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Commit Notification 2018-11-29 20:42:26 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":


tdf#115663 Syntax highlight in BASIC code examples