Alle Styles von Pygments im Vergleich

Pygments ist ein in Python geschriebener Syntax Highlighter, den ich auch auf dieser Seite nutze und der verschiedene Farbschemata beinhaltet. Hier eine Übersicht:

manni

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



perldoc

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



borland

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



colorful

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



default

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



murphy

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



trac

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



fruity

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



autumn

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



emacs

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



pastie

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



friendly

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)



native

class Dummy(object):
    """A class to show different highlighting styles"""
    def __init__(self, friends):
        """Another docstring!"""
        self.friends = list(friends)

    def print_friends(self):
        # that's a comment
        for ix, friend in enumerate(self.friends):
            print "%i. friend is %s"%(ix, friend)

tags: Python erstellt am 29.1.2008 13:03, zuletzt gendert am 24.1.2009 15:27