Quote:I replace PHP's nl2br function with a modified function to replace pre tags with the pytohn brush (since that is what we are using to insert codeboxes).
Yeah nice i was messing around with
class_parser.php,but could not figure it out.
Some more test,all using Python tag.
Now it's theme midnight,which i think look good.
Different theme is on
Page-2,
i am gone change theme to see how it look in forum.
Theme on page-2 did i run in Flask.
Looking for a nice 16x16 icon we can use for button SyntaxHighlighter v4.
Python:
import re
class Hardware(object):
def __init__(self, name, hardware_id):
self.name = name
self.hardware_id = hardware_id
@property
def show_info(self):
'''Show hardwareinfo'''
print 'Name: {} | hardware_id: {}'.format(self.name, self.hardware_id)
class Cpu(Hardware):
max_temp = 72
def __init__(self, name, hardware_id, socket, speed):
Hardware.__init__(self, name, hardware_id)
self.socket = socket
self.speed = speed
@classmethod
def heat_advice(cls, current_temp):
'''Give heat advice to user'''
if current_temp < cls.max_temp:
return 'Current temp: {} is ok,under Intel recommended max temp of: {}'\
.format(current_temp, cls.max_temp)
return 'Current temp : {} is over Intel recommended max temp of: {}'\
.format(current_temp, cls.max_temp)
Html:
<html>
<body>
<div id='images'>
<a href='image1.html'>My image 1 <br /><img src='image1_thumb.jpg' /></a>
</div>
<div>
<p class="car">
<a class="bmw" href="Link to bmw"></a>
<a class="opel" href="Link to opel"></a>
</p>
<p class="end">
all cars are great
</p>
</div>
</body>
</html>
Css:
.all {
width: 100px;
height: 100px;
position: absolute;
top:0px;
bottom: 200px;
left: 0px;
right: 300px;
margin: auto;
}
body {
background: linear-gradient(to left, #616161, #9bc5c3);
}
.parent {
width: 450px;
height: 150px;
text-align: center;
padding: 20px 17px;
}
Js:
$("#delay input").click(function(e) {
e.preventDefault();
setTimeout(function() {
$("#delay").submit();
}, 2000);
});