Sep-21-2018, 12:32 PM
You are clearly having a problem with formatting for sharing on this forum, so here's my attempt (not sure if I have indents where you intended):
There are several plugins for Wordpress that offer a means to display correctly formatted programme code in posts and comments, including what colours to use for syntax highlights. For example, Crayon - I am not recommending this (I don't use Wordpress anymore; prefer static site generators like the Python based Pelican), it is just something I found with a quick web search.
I still do not understand why you are asking about this on a Python group. (Maybe I've just helped you, so it has proved worthwhile).
klanten = int(input ('Voer het aantal klanten in:')) prijs1 = klanten/1000 * 49 if klanten >= 1000 and klanten <25000: print ('Uw prijs is %i euro per maand' % (prijs1)) prijs2 = 1225 + (klanten - 25000) / 1000 * 25 if klanten >= 25000 and klanten <100000: print ('Uw prijs is %i euro per maand' % (prijs2)) prijs3 = 3100 + (klanten - 100000) / 1000 * 10 if klanten >= 100000 and klanten <250000: print ('Uw prijs is %i euro per maand' % (prijs3)) prijs4 = 4600 + (klanten - 250000) / 1000 * 6 if klanten >=250000: print ('Uw prijs is %i euro per maand' % (prijs4))The video you linked to is about setting colours in the Python IDLE editor. Every editor has its own way for you to configure what colours are used (if the the author choses to offer the capability).
There are several plugins for Wordpress that offer a means to display correctly formatted programme code in posts and comments, including what colours to use for syntax highlights. For example, Crayon - I am not recommending this (I don't use Wordpress anymore; prefer static site generators like the Python based Pelican), it is just something I found with a quick web search.
I still do not understand why you are asking about this on a Python group. (Maybe I've just helped you, so it has proved worthwhile).
I am trying to help you, really, even if it doesn't always seem that way