Hack reviewboard enables Firefox to display the tab as 4 or 2 Spaces

Source: Internet
Author: User

Our team has been using the Review Board for several months, and we still feel that it is okay.

However, Firefox will display the tab with 8 spaces, which makes us feel bad.

Who will display the tab as eight spaces in the editor? Our programming specification uses two spaces.

Fortunately there is Firefox No. 1 dead loyal, not hack uncomfortable driver muzuiget (http://twitter.com /#! /Muzuiget) immediately proposed two solutions to solve the problem.

First, install the stylish additional component, write a new style, and write the upper and lower linesCode:

@ Namespace URL (http://www.w3.org/1999/xhtml); <br/> @-moz-document URL-prefix (http://reviewboard.example.com) {<br/> body {<br/>-moz-tab-size: 4! Important; <br/>}< br/>

Replace example.com with your RB address, and then replace 4 with the tab-size you want.

The second is to directly install the CSS file of the hack reviewboard, which saves the trouble of installation. After all, it is not easy for everyone to install it. The files that require hack are stored in:

/Path/to/reviewboard/htdocs/Media/Rb/CSS/common.css

Get an editor and add a line in the front body block:

-Moz-tab-size: 4! Important;

That's it.

 

Well, don't ask me how to get it from IE or chrome, because I haven't used it for the time being, but you are welcome to reply to it. I wrote this for memo.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.