Comments (3)
I try to use the CSS tab-size on the pre element, not working.
It most certainly works if your content includes actual ASCII tab characters (byte value: 9). Mozilla includes an example of this working in the docs: https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size. If this doesn't work in your browser then there is a problem with your browser and we can't help with that. If it does work in your browser but just not with Highlight.js you could provide a JSfiddle that reproduces the problem and we can take a closer look.
If tab-size
does nothing it's likely you're using spaces (not tabs), and there are no built-in features to control tab width when the tabs are composed of individual spaces.
Or sometimes the whitespace is not even exist and I don't know how it indent.
If the whitespace is simply missing in the source code I'm not sure how we could help...
from highlight.js.
We used to have an option for replacing tabs with a number spaces: #2874 (though again it sounds like you aren't using real tabs at all)
It was removed, in favor of using the newer CSS features.
from highlight.js.
Closing as #wontfix.
from highlight.js.
Related Issues (20)
- Cannot checkout 11.9.0 tag HOT 1
- (request org repo) highlightjs-postscript
- Not possible to download a package with all languages from the website HOT 5
- (Rust) Mismatched brackets in complex attribute
- Could not find the language 'HTML, XML' HOT 1
- [Request] Providing information about the passed raw text's offsets/color for the highlight HOT 9
- (Bash and Shell) There is no syntax highlighting for the two. I've seen another issue but didn't seem it got answered. HOT 8
- (ini) Unquoted string value with embedded period incorrectly highlighted HOT 2
- Cloudwatch Query Language (pschorrql) HOT 2
- [Request] Conversion/usage of Pygments theme to `higlightjs` HOT 3
- (YAML) Expand allowed characters in keys HOT 3
- Download from `highlightjs.org/download` fails if select all languages HOT 1
- (C#) `file` keyword/accessibility modifier isn't highlighted
- (C) C23's digit separators are highlighted incorrectly HOT 1
- Unnecessary output while loading the highlight.js plugin. HOT 1
- (sql) 'foreign key' and 'primary key' do not highlight 'key'. HOT 4
- [Request] New package release
- (request org repo) highlightjs-mirth HOT 1
- (request org repo) highlightjs-bend
- (C/C++) Hex float literal hilit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highlight.js.