Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jfkebwjsbx
on April 14, 2020
|
parent
|
context
|
favorite
| on:
Tell HN: C Experts Panel – Ask us anything about C
Tip: you can use four leading spaces to write code.
Like this
steveklabnik
on April 14, 2020
[–]
You only need two!
like this
DougGwyn
on April 14, 2020
|
parent
|
next
[–]
I tried, but two spaces yielded what you saw.
dang
on April 14, 2020
|
root
|
parent
|
next
[–]
Huh, it also needed an extra line break before the first line of code. I didn't realize that! I've fixed it now.
steveklabnik
on April 14, 2020
|
root
|
parent
|
next
[–]
I didn't realize that either, but it's described in formatdoc as such. So if you changed that behavior, probably should change the docs too.
dang
on April 14, 2020
|
root
|
parent
|
next
[–]
I didn't change the behavior - I just added a newline. Sorry that wasn't clear.
DougGwyn
on April 14, 2020
|
root
|
parent
|
prev
|
next
[–]
You should be commended for the fast customer service!
sgt
on April 14, 2020
|
parent
|
prev
[–]
I did not know that, after spending years on HN.
while(1) fork();
steveklabnik
on April 14, 2020
|
root
|
parent
[–]
https://news.ycombinator.com/formatdoc
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: