SetFileType sets the syntax highlighting and other parameters based on the given fileinfo.Known file type
(ftyp fileinfo.Known)
| 287 | // SetFileType sets the syntax highlighting and other parameters |
| 288 | // based on the given fileinfo.Known file type |
| 289 | func (tb *Buffer) SetLanguage(ftyp fileinfo.Known) *Buffer { |
| 290 | tb.Lines.SetLanguage(ftyp) |
| 291 | return tb |
| 292 | } |
| 293 | |
| 294 | // FileModCheck checks if the underlying file has been modified since last |
| 295 | // Stat (open, save); if haven't yet prompted, user is prompted to ensure |
no outgoing calls