SetFileType sets the syntax highlighting and other parameters based on the given fileinfo.Known file type
(ftyp fileinfo.Known)
| 162 | // SetFileType sets the syntax highlighting and other parameters |
| 163 | // based on the given fileinfo.Known file type |
| 164 | func (ls *Lines) SetLanguage(ftyp fileinfo.Known) { |
| 165 | ls.SetFileInfo(fileinfo.NewFileInfoType(ftyp)) |
| 166 | } |
| 167 | |
| 168 | // SetFileExt sets syntax highlighting and other parameters |
| 169 | // based on the given file extension (without the . prefix), |
nothing calls this directly
no test coverage detected