question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code indents in code blocks between HTML tags

See original GitHub issue

Hello!

REPRODUCED ONLY: code block MUST BE between HTML blocks.

2018-08-16 10_22_07

Example block:

<div>
`​`​`kotlin
fun main(args: Array<String>) {
     print("Hello world")
}
`​`​`
</div>

render as:

<code>
fun main(args: Array<String>) {
print("Hello world")
}
</code>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
probablyupcommented, Aug 14, 2018

Will take a look, thanks

0reactions
AlexanderPrendotacommented, Aug 21, 2018

@probablyup Awesome! Thank you so much 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML: Indentation and Spacing | CSE 154 Unofficial Style Guide
Spacing and indentation should be consistent throughout your code. Many developers choose to use 4-space or 2-space indentation. In HTML, each nested tag...
Read more >
How do I use indentation in a <code> tag? - Stack Overflow
It is used when displaying text with unusual formatting, or some sort of computer code. And you will not need additional "br" tags....
Read more >
HTML Indentation and Spacing - LearnHowToProgram.com
When you are writing HTML (or any other programming language), well-written code follows consistent indentation and spacing patterns.
Read more >
<code> HTML Tag »
CODE indicates text that is the code for a program. ... the <pre> element to preserve line breaks and indentation when presenting blocks...
Read more >
Formatting & Indenting Your HTML - Scott Granneman
Best method: indent text/content ↩ · Start ( <p> ) & end ( </p> ) are at same level, so it's easy to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found