Showing posts with label Misc. Show all posts
Showing posts with label Misc. Show all posts

Thursday, August 19, 2010

SyntaxHighlighter

SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript. In short, it beautifies your code posts, something like this for Python codes:
class SimpleDescriptor(object):

    def __get__(self, instance, owner):
        # Check if the value has been set
        if (not hasattr(self, "_value")):
            raise AttributeError
        print "Getting value: %s" % self._value
        return self._value

    def __set__(self, instance, value):
        print "Setting to %s" % value
        self._value = value

    def __delete__(self, instance):
        del(self._value)
This article provides very-easy steps to utilize SyntaxHighlighter.
-

Tuesday, April 20, 2010

Test


\int_{-\infty}^{\infty}e^{-x^{2}}\;dx=\sqrt{\pi}


Just trying my jsTeXrender