Add Support for Additional File Extensions in Syntax Highlighter#2
Open
Neburalis wants to merge 2 commits intomrauter1:mainfrom
Open
Add Support for Additional File Extensions in Syntax Highlighter#2Neburalis wants to merge 2 commits intomrauter1:mainfrom
Neburalis wants to merge 2 commits intomrauter1:mainfrom
Conversation
…tifiers for syntax highlighting in `get_language_from_extension`"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extended the functionality of the
get_language_from_extensionfunction ingit2text.pyby adding a wide range of new file extensions with their corresponding language identifiers for Markdown syntax highlighting.Changes:
Updated the extension_to_language dictionary to include new file extensions such as .abap, .bat, .dockerfile, .go, and many more.
These extensions span a variety of programming languages, markup languages, and configuration files.
The function now returns a more accurate language identifier for a wider range of files.
Additional Information:
This update includes only a small portion of the possible extensions and language mappings. For a more comprehensive list, you can refer to the source from the Linguist language list (list of languages supported by github): languages.yml.
Benefits:
Improved syntax highlighting support for various file types in Markdown files.
Enhanced flexibility for users working with diverse programming languages or configuration files.
Related Issues:
N/A