File Content Extraction 25.3
Filter SDK C Programming Guide

# 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

1. Open `formats.ini` and find the format that you want to configure.

2. Change the reader from `codesr` to `afsr`.

   For example, to filter all Python source code you would change:

   `531=code`

   to

   `531=af`

3. Save and close the configuration file.

Copyright 1997-2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 25.3

Topic Title: Source Code