Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with BBCode
#1
My apologies if this question isn't formatted correctly, but I'm trying to get BBCode straightened out. I'm trying to insert my code between the python tags but when I preview it, it is altered and hard to read. How do I insert it so it is easy for every one here to read? I've looked over the BBCode link but it wasn't helpful.  [color=#0000ff]When I copy/paste the code from pycharm it becomes this on the forum:


[color=#000080]def [/color]sieve(n=[color=#0000ff]1000000[/color]):
multiples = [color=#000080]set[/color]()
primes = [[color=#0000ff]2[/color]]
[color=#000080]for [/color]i [color=#000080]in [/color][color=#000080]range[/color]([color=#0000ff]3[/color], n, [color=#0000ff]2[/color]):
[color=#000080]if [/color]i [color=#000080]not in [/color]multiples:
[i][i]
Thank you...[/i][/i]
Reply
#2
When you post the code, use crtl-shift-v (on original copy)
this will remove any formatting.
Reply
#3
Ctrl+Shif+v is the advisable way as posed bye @Larz60+

There also a Remove Formatting button if you look on menu of editor.
If i just cope a line from your post.

Before:
When I copy/paste the code from pycharm it becomes this on the forum:

After mark line and push Remove Formatting button:
When I copy/paste the code from pycharm it becomes this on the forum:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  BBCode tags NLittle17 5 4,141 Jan-07-2019, 11:02 PM
Last Post: Larz60+
  BBcode pointer position metulburr 0 2,914 Dec-15-2016, 01:35 PM
Last Post: metulburr
  bbcode fail [list=0] Skaperen 2 3,803 Nov-12-2016, 01:49 PM
Last Post: metulburr
  BBCODE disappears on full edit Larz60+ 3 4,766 Nov-08-2016, 01:26 AM
Last Post: Larz60+
  BBcode help spoiler in editor metulburr 1 3,846 Oct-20-2016, 05:27 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020