-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to draw the current line number in different brush
- Loading branch information
Showing
9 changed files
with
92 additions
and
31 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
Src/VimApp/Implementation/SelectedLineNumberFormatDefinition.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.ComponentModel.Composition; | ||
using System.Windows.Media; | ||
using Microsoft.VisualStudio.Text.Classification; | ||
using Microsoft.VisualStudio.Utilities; | ||
|
||
namespace VimApp.Implementation | ||
{ | ||
// VimApp does not have a Selected Line Number FormatDefinition | ||
// so we add it here | ||
[Export(typeof(EditorFormatDefinition))] | ||
[ClassificationType(ClassificationTypeNames = Name)] | ||
[Name(Name)] | ||
internal class SelectedLineNumberFormatDefinition : ClassificationFormatDefinition | ||
{ | ||
internal const string Name = "Selected Line Number"; | ||
|
||
internal SelectedLineNumberFormatDefinition() | ||
{ | ||
DisplayName = Name; | ||
ForegroundColor = Colors.Red; | ||
} | ||
} | ||
|
||
internal sealed class SelectedLineNumberClassificationType | ||
{ | ||
[Name(SelectedLineNumberFormatDefinition.Name)] | ||
[Export] | ||
internal ClassificationTypeDefinition SelectedLineNumberTypeDefinition { get; set; } | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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