Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Jesus saves...but Gretzky gets the rebound!" -- Daniel Hinojosa (hinojosa@hp-sdd)


devel / comp.lang.python / Re: Posting code on stackoverflow

SubjectAuthor
o Re: Posting code on stackoverflowRoel Schroeven

1
Re: Posting code on stackoverflow

<mailman.522.1622941812.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13574&group=comp.lang.python#13574

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: roe...@roelschroeven.net (Roel Schroeven)
Newsgroups: comp.lang.python
Subject: Re: Posting code on stackoverflow
Date: Sun, 6 Jun 2021 01:00:17 +0200
Lines: 27
Message-ID: <mailman.522.1622941812.3087.python-list@python.org>
References: <alpine.LNX.2.20.2106051433010.25613@salmo.appl-ecosys.com>
<s9gvm1$17sc$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de MVL56k78RjZTsH+FMW+oWgPdU9zHO5XuL7NOfOOz3NxQ==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bunch': 0.05; 'spaces':
0.07; 'blank': 0.09; 'message-id:@ciao.gmane.io': 0.09;
'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; 'roel': 0.09; 'schroeven': 0.09;
'franklin': 0.16; 'received:116.202': 0.16;
'received:116.202.254': 0.16; 'received:116.202.254.214': 0.16;
'schreef': 0.16; 'scroll': 0.16; 'shepard': 0.16; 'subject:code':
0.16; 'url-ip:151.101.1.69/32': 0.16; 'url-ip:151.101.129.69/32':
0.16; 'url-ip:151.101.193.69/32': 0.16; 'url-ip:151.101.65.69/32':
0.16; 'url:questions': 0.16; 'url:stackoverflow': 0.16; 'code.':
0.19; "i've": 0.22; 'to:addr:python-list': 0.23; 'lines': 0.24;
'code': 0.24; 'tried': 0.26; 'asked': 0.27; "didn't": 0.29;
'input': 0.29; 'text': 0.29; 'header:User-Agent:1': 0.31; 'there':
0.31; 'code,': 0.31; 'but': 0.31; 'question': 0.32; 'available.':
0.32; 'url-ip:151.101.129/24': 0.32; 'url-ip:151.101.193/24':
0.32; "wouldn't": 0.32; 'header:In-Reply-To:1': 0.33; 'bar': 0.35;
'hard': 0.38; "it's": 0.38; 'could': 0.40; 'box': 0.61; 'involve':
0.65; 'let': 0.65; 'time,': 0.69; 'subject:skip:s 10': 0.69;
'received:116': 0.71; 'jones': 0.75; 'clicking': 0.77; 'pasting':
0.84; 'subject:Posting': 0.84; 'criticism': 0.91; 'friend,': 0.95
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
In-Reply-To: <alpine.LNX.2.20.2106051433010.25613@salmo.appl-ecosys.com>
Content-Language: nl
X-Mailman-Approved-At: Sat, 05 Jun 2021 21:10:11 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <s9gvm1$17sc$1@ciao.gmane.io>
X-Mailman-Original-References: <alpine.LNX.2.20.2106051433010.25613@salmo.appl-ecosys.com>
 by: Roel Schroeven - Sat, 5 Jun 2021 23:00 UTC

Rich Shepard schreef op 5/06/2021 om 23:36:
> I tried to post a question on stackoverflow.com which included a bunch of
> code (entered after clicking the box 'code'). I noticed that lines were
> wrapped but could not find how to expand the input box so they would not
> wrap.
>
> SO wouldn't let me post the question because of the wrapped code. As I've
> not asked a question ther for a long time, and it didn't involve long lines
> of code, I need to learn a) how to enter code if it's not just clicking on
> the 'code' box before pasting text and b) how to keep code lines from
> wrapping so a horizontal scroll bar is made available.

There are several ways to format code on StackOverflow, see
https://meta.stackoverflow.com/questions/251361/how-do-i-format-my-code-blocks

What I do most of the time is indent the code by 4 spaces and make sure
there are blank lines before and after the code block.

--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones

Roel Schroeven

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor