Emacs file variable
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo |formattype=electronic |subcat=Elements of File Formats }} By '''Emacs file variable''', we mean the boilerplate runes that appear near the beginning of some [[so...") |
m (→Specifications) |
||
(One intermediate revision by one user not shown) | |||
Line 7: | Line 7: | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
− | The variable definitions can help to (for example) interpret or display the | + | The variable definitions can help to (for example) interpret or display the file. |
− | This syntax apparently originates from the Emacs text editor. Subsets and extensions of it have been borrowed by | + | This syntax apparently originates from the Emacs text editor. Subsets and extensions of it have been borrowed by some other text editors, viewers, and other software. |
== Specifications == | == Specifications == | ||
− | * [https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html GNU Emacs Manual | + | * [https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html GNU Emacs Manual: Specifying File Variables] |
* [https://www.python.org/dev/peps/pep-0263/ PEP 263 -- Defining Python Source Code Encodings] | * [https://www.python.org/dev/peps/pep-0263/ PEP 263 -- Defining Python Source Code Encodings] | ||
[[Category:Text-based data]] | [[Category:Text-based data]] | ||
[[Category:Source code]] | [[Category:Source code]] |
Latest revision as of 17:01, 21 November 2017
By Emacs file variable, we mean the boilerplate runes that appear near the beginning of some source code files, usually delimited by "-*-
". For example:
#!/usr/bin/python # -*- coding: utf-8 -*-
The variable definitions can help to (for example) interpret or display the file.
This syntax apparently originates from the Emacs text editor. Subsets and extensions of it have been borrowed by some other text editors, viewers, and other software.