Making WordPress.org

Opened 17 months ago

Closed 4 months ago

#6820 closed enhancement (fixed)

Decrease code block tab size

Reported by: howdy_mcgee's profile Howdy_McGee Owned by: coffee2code's profile coffee2code
Milestone: Priority: lowest
Component: Support Forums Keywords: has-patch needs-testing
Cc:

Description

The default tab size for pre tags is 8 spaces. This patch updates the tab size to 4 to make code blocks a bit more condensed and uniform.

8 Spaces:
https://i.imgur.com/7trKkCG.png

4 Spaces:
https://i.imgur.com/KLPB2Dn.png

Attachments (1)

tab-size-4.diff (606 bytes) - added by Howdy_McGee 17 months ago.
Tab size 4 with prefixes.

Download all attachments as: .zip

Change History (2)

@Howdy_McGee
17 months ago

Tab size 4 with prefixes.

#1 @coffee2code
4 months ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 13386:

Support, Code expand/contract: Reduce tab size for code blocks to 4 spaces.

Props Howdy_McGee.
Fixes #6820.

Note: See TracTickets for help on using tickets.