Source Code
When you enable source code identification, file format detection can identify source code files by language. For example, a file containing Python code would be detected as Python_Fmt
(531) rather than ASCII_Text_Fmt
(2).
The default reader for many of the source code formats is codesr
. This reader filters comments from the source code but not the source code itself. Ignoring the source code is a sensible choice for many use cases. To see which formats are supported by codesr, see codesr.
If you prefer you can filter all of the text from a source code file.
To filter all text from source code files
- Open
formats.ini
and find the format that you want to configure. -
Change the reader from
codesr
toafsr
.For example, to filter all Python source code you would change:
531=code
to
531=af
-
Save and close the configuration file.