module documentation

pygments.modeline ~~~~~~~~~~~~~~~~~ A simple modeline parser (based on pymodeline). :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.

Function get_filetype_from_buffer Scan the buffer for modelines and return filetype if one is found.
Function get_filetype_from_line Undocumented
Variable modeline_re Undocumented
def get_filetype_from_buffer(buf, max_lines=5): (source)

Scan the buffer for modelines and return filetype if one is found.

def get_filetype_from_line(l): (source)

Undocumented

modeline_re = (source)

Undocumented