Skip to content

Commit

Permalink
Support highlight of unlimited number of words
Browse files Browse the repository at this point in the history
  • Loading branch information
jendelel committed Sep 23, 2018
1 parent 934511d commit 7b589bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MultiWordHighlight/HighlightWordSettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal static class HighlightWordsSettingsManager
internal static SettingsManager VsManagedSettingsManager =
new ShellSettingsManager(ServiceProvider.GlobalProvider);

private const int _maxWords = 5;
private const int _maxWords = 50;
private const string _collectionSettingsName = "Text Editor";
private const string _settingName = "HighlightWords";

Expand Down
2 changes: 1 addition & 1 deletion MultiWordHighlight/HighlightWordsTagger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public HighlightWordFormatDefinition5()

class HighlightWordClass : TextMarkerTag
{
public HighlightWordClass(int color) : base($"MarkerFormatDefinition/HighlightWordFormatDefinition{color + 1}") { }
public HighlightWordClass(int color) : base($"MarkerFormatDefinition/HighlightWordFormatDefinition{(color % 5) + 1}") { }
}

internal class HighlightWordTagger : ITagger<HighlightWordClass>
Expand Down
4 changes: 2 additions & 2 deletions MultiWordHighlight/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]
[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
4 changes: 2 additions & 2 deletions MultiWordHighlight/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="MultiWordHighlight.3f27d190-0b7d-40dd-ad04-9490be06709f" Version="1.0.1" Language="en-US" Publisher="Lukas Jendele" />
<Identity Id="MultiWordHighlight.3f27d190-0b7d-40dd-ad04-9490be06709f" Version="1.0.2" Language="en-US" Publisher="Lukas Jendele" />
<DisplayName>MultiWordHighlight</DisplayName>
<Description xml:space="preserve">Highlights all occurences of up to 5 words in all open files.</Description>
<Description xml:space="preserve">Highlights all occurences multiple words in all open files.</Description>
<MoreInfo>https://github.com/jendelel/MutliWordHighlight</MoreInfo>
<License>LICENSE.txt</License>
<GettingStartedGuide>https://github.com/jendelel/MutliWordHighlight</GettingStartedGuide>
Expand Down

0 comments on commit 7b589bc

Please sign in to comment.