KeyView 23.2

# 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.

When you do not enable source code identification, files containing source code may be identified as ASCII text files, causing the application to treat them in the same way as ordinary text. However, in many instances, it can be useful to route these files elsewhere or filter them out. For example, indexing source code into an IDOL index has minimal value and could bloat the engine with terms that are of no use in retrieval. You can use source code identification to identify files containing a particular programming language as a more specific format.

NOTE: Source code identification is available only on certain platforms (see source code identification in the platform differences section).

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.

To configure source code identification

- In `formats_e.ini`, set the following parameter to the appropriate level.

      [Options]
      SourceCodeDetection=KVSOURCECODE_ENABLED

Copyright 1997-2023 Open Text
Version 23.2 | Last updated March 2023

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.2

Topic Title: Source Code Identification