Rosetta Code:Village Pump/Foldable output: Difference between revisions

Line 60:
== How can you scroll in a Python> tag ==
Colourised scrollable regions anyone? Thanks. --[[User:Paddy3118|Paddy3118]] 05:24, 31 January 2009 (UTC)
: The following is the best I manage to get:
<div style="height:30ex;overflow:scroll"><lang python>
# Your code here
 
a = 1
b = 2
c = 3
d = 4
e = 5
f = 6
g = 7
h = 8
i = 9
j = 10
k = 11
l = 12
m = 13
n = 14
o = 15
p = 16
q = 17
r = 18
s = 19
t = 20
</lang></div>
: I guess to get anything better, one would have to change the GeSHi MediaWiki extension, so it takes anything after the language name and adds it to the generated pre tag. Then you could use <tt><nowiki><lang python style="height:30ex;overflow:scroll"></nowiki></tt> --[[User:Ce|Ce]] 12:26, 31 January 2009 (UTC)
973

edits