开发者

Is there a way to change how tab characters are rendered in a browser?

开发者 https://www.devze.com 2023-03-30 09:00 出处:网络
Specifically in Firefox.We look at code in the browser often, and I am wondering if we could configure the browser so that tab characters show up开发者_运维知识库 as 4 spaces wide, instead of the defa

Specifically in Firefox. We look at code in the browser often, and I am wondering if we could configure the browser so that tab characters show up开发者_运维知识库 as 4 spaces wide, instead of the default 8 spaces.

Edit: no responses yet. So I assume this is not possible?


Not really the answer you are looking for but maybe you could replace the tab characters with the appropriate amount of spaces and use the "pre" tag?

It is definitely worth looking at the html source to see how sites like stackoverflow.com deal with displaying source code.

0

精彩评论

暂无评论...
验证码 换一张
取 消