Project

General

Profile

Actions

Feature #12036

closed

Allow backtip for inline code with inline block style

Added by Caio Cunha over 11 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Many of big players, as GitHub and StackOverflow, put inline code inside a inline block, with style very close to the pre style.

It would be interesting, for reading clarity and design purposes, that Redmine allow this kind of formatting. The closer we can get to inline code is with marks, that make monospaced fonts.

I suggest the adoption of the backtip (`) notation for inline code. The result should be similar to the following:

Source:
This is `my little` snippet.

Result:
This is my little snippet.

The current result was achieved with:

This is %{padding:3px; background-color: #fafafa; border: 1px solid #e2e2e2;}my little% snippet.


Related issues

Related to Redmine - Patch #31343: Visually distinguishable style for code tagClosedGo MAEDA

Actions
Actions #1

Updated by Caio Cunha over 11 years ago

About the design, I'd like to also suggest border-radius: .25em; display: inline-block; for the sake of improving readability on inline block elements.

Actions #2

Updated by Etienne Massip over 11 years ago

  • Category set to Text formatting
-1:
  • not Textile
  • backtip is not directly accessible on non-US keyboards
Actions #3

Updated by Caio Cunha over 11 years ago

Etienne Massip wrote:

-1:
  • not Textile
  • backtip is not directly accessible on non-US keyboards

No problem dropping the backtips, my point is more about styling indeed (thanks for categorizing it). Maybe the @ marks (for inline code) could format with the boxed background. It renders a more readable code in the middle of the content than just a monospaced font.

Actions #4

Updated by Go MAEDA over 4 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Caio Cunha wrote:

No problem dropping the backtips,

In Redmine 2.5 or later, you can use backticks if you use Markdown as a text formatting markup.

my point is more about styling indeed (thanks for categorizing it). Maybe the @ marks (for inline code) could format with the boxed background. It renders a more readable code in the middle of the content than just a monospaced font.

The upcoming Redmine 4.1 sets background-color for inline code (#31343). They will be visually distinguishable.

Actions #5

Updated by Go MAEDA over 4 years ago

  • Related to Patch #31343: Visually distinguishable style for code tag added
Actions

Also available in: Atom PDF