indoc icon indicating copy to clipboard operation
indoc copied to clipboard

Add ability to control tab-size

Open gabrielflorit opened this issue 8 years ago • 1 comments

For some inexplicable reason browsers render pre tab sizes with 8 spaces (8!). I'd personally like to set this to 2, e.g.

pre {
  -moz-tab-size: 2;
  tab-size: 2;
}

but I'm sure others will prefer 4. What do you think is the best way to handle this? User config in indoc.json?

gabrielflorit avatar Feb 07 '17 23:02 gabrielflorit

With the way the code is laid out, it's inherently impossible to copy more than a few lines of code. I think the cleanest solution is to convert tabs to spaces during processing; and yeah, a line in indoc.json seems to make the most sense.

zlsa avatar Feb 16 '17 23:02 zlsa