module documentation

A simple modeline parser (based on pymodeline).

Unknown Field: copyright
Copyright 2006-2021 by the Pygments team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Variable modeline​_re Undocumented
Function get​_filetype​_from​_buffer Scan the buffer for modelines and return filetype if one is found.
Function get​_filetype​_from​_line Undocumented
modeline_re =

Undocumented

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

Undocumented