Closed (fixed)
Project:
GeSHi Filter for syntax highlighting
Version:
8.x-1.x-dev
Component:
Theming and Styling
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2012 at 20:41 UTC
Updated:
4 May 2017 at 03:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
soxofaan commentedIf you use the PRE container, tabs are preserved in the markup and handled by the browser. You can control this tab width with css (e.g.
tab-size: 4;), but this is not supported by all browsers.If you use another container, the GeSHi library replaces tabs with spaces, eight by default. It is possible to change the tab width, but this is not supported currently by the GeSHi filter for syntax highlighting module.
Comment #2
yukare commentedThis is kinda simple to implement, so i will do it for drupal 8. We just need to add a new global setting: tab width and use this
$geshi->set_tab_width($width);on geshiprocess.Comment #3
yukare commentedIt is working, lets see the test.
Comment #5
yukare commentedFixed with the commit.