Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 11, 2025
1 parent 4918a6a commit 670a6f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ A collection of minimal binary files.

All files: https://github.com/VerifyTests/EmptyFiles/tree/main/files


<!-- include: extensions. path: /src/extensions.include.md -->
### Archive

Expand Down Expand Up @@ -271,6 +272,19 @@ False(FileExtensions.IsTextExtension(".ext1"));
<!-- endSnippet -->


#### AddTextFileConvention

`AddTextFileConvention` allows the use of a convention based text file detection via a callback.

At app startup add a convention using `FileExtensions.AddTextFileConvention`:

snippet: AddTextFileConvention

Then any call to `FileExtensions.IsTextFile` will, in addition to checking the known text extensions, also check if any of the added text contentions return true.

snippet: TextViaConvention


## Icon

[Hollow](https://thenounproject.com/term/hollow/51835/) designed by [Michael Senkow](https://thenounproject.com/mhsenkow/) from [The Noun Project](https://thenounproject.com).

0 comments on commit 670a6f2

Please sign in to comment.