# Source Code Identification

When KeyView auto-detects a file that contains source code, it can attempt to identify the programming language that it is written in.

NOTE: Source code identification is a new, experimental feature in KeyView 12.0. It is available only on Windows 64-bit, Linux 64-bit, and macOS 64-bit platforms.

You can set source code identification to different levels.

Option | Description
--- | ---
`KVSOURCECODE_OFF` | Do not enable source code identification.
`KVSOURCECODE_ENABLED` | Enable source code identification for the most common source code formats.
`KVSOURCECODE_EXTENDED` | Enable source code identification for all supported source code formats. This option might lead to false positives in some cases (for example, a C++ file might get identified as a rarer format).

For the complete list of source code formats supported for both options, see Supported Formats.

You can enable source code identification by setting the appropriate level in the `formats.ini` file. For example:

    [Options]
    SourceCodeDetection=KVSOURCECODE_ENABLED

You can also enable this option by passing `KVFLT_SOURCECODEIDENTIFICATION` to the `fpFilterConfig()` function. For example:

    (*fpFilterConfig)(pKVFilter, KVFLT_SOURCECODEDETECTION, KVSOURCECODE_ENABLED, NULL);

Setting the option through `fpFilterConfig` overrides any settings in `formats.ini`.

For more information, see fpFilterConfig().

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm