Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New header in "Python coding"
#5
Quote:The python code block is just php syntax highlighter though. where the button is reskin'd to look like python.
Yes i should now,spend some time on it to do the reskin ;)
The whole point is that that is preserver Python indentation and look a lot better than regular Code block.

from flask import Flask
app = Flask(__name__)

#Route to browser
@app.route("/")
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()
Quote:EDIT:
and i thought that was still being worked on to integrate shcode (if at all it ever gets fixed) and/or to change the php syntax highlighter to regex python keywords and ignore php's.
Yes still working on it,had to take a break after spending a lot of time on it.
I need Help from my MyBB staff,i will make that post myself to explain all the stuff i have tried.
So if get it to work there will two buttons to choose from.
Reply


Messages In This Thread
New header in "Python coding" - by Ofnuts - Sep-22-2016, 08:25 AM
RE: New header in "Python coding" - by metulburr - Sep-22-2016, 01:15 PM
RE: New header in "Python coding" - by snippsat - Sep-22-2016, 02:07 PM
RE: New header in "Python coding" - by metulburr - Sep-22-2016, 02:10 PM
RE: New header in "Python coding" - by snippsat - Sep-22-2016, 02:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  malformed header from script 'main.py': Bad header: * Serving Flask app "main" anuragsapanbharat 2 4,623 Jun-12-2019, 07:26 AM
Last Post: anuragsapanbharat

Forum Jump:

User Panel Messages

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