Fortran-FOSS-Programmers / Fortran-FOSS-Programmers/ford

Specify lexer for extra_filetypes

Open
#203 8 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
458
Forks
138
PR merge metrics
No merged PRs in 30d

Description

I'm using the `.inc` extension for include files (and the `extra_filetypes` option to include these in the documentation). However, I guess Pygments interprets this as some other kind of file and is highlighting it weird. It would be nice to somehow specify the lexer to use for these files, maybe as another option in the declaration, so:
```
extra_filetypes: inc ! ABC
```
where `ABC` is whatever info Pygments needs to treat it as Fortran.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.