python
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
code = '''
def hello_world():
print("Hello, world!")
'''
highlighted_code = highlight(code, PythonLexer(), HtmlFormatter())
print(highlighted_code)