Skip to content

Instantly share code, notes, and snippets.

@CADbloke
Last active February 13, 2018 20:59
Show Gist options
  • Save CADbloke/7478607 to your computer and use it in GitHub Desktop.
Save CADbloke/7478607 to your computer and use it in GitHub Desktop.
Notepad++ Syntax highlighting Visual Studio Project Files (.csproj & .vbproj) and also .vstemplate files. I'm sure I didn't catch every keyword so you may have a little adding to do. Just make sure you add enough closing braces in the Styler. Also, no I'm not colour-blind. I'm not a designer either. Nyah.Instructions for the styler at http://udl…
<NotepadPlus>
<UserLang name="VS Projects" ext="csproj vbproj vstemplate targets proj" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="yes" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="yes" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03&lt;!-- 04--&gt;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">!= ! | || &amp; &amp;&amp; = == $</Keywords>
<Keywords name="Operators2">And Or</Keywords>
<Keywords name="Folders in code1, open">PropertyGroup ItemGroup TemplateData TemplateContent CustomParameters Choose</Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">/PropertyGroup /ItemGroup /TemplateData /TemplateContent /CustomParameters /Choose</Keywords>
<Keywords name="Folders in code2, open">&lt;Project &lt;VSTemplate</Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close">&lt;/Project&gt; &lt;/VSTemplate&gt;</Keywords>
<Keywords name="Folders in comment, open">&lt;!--</Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close">--&gt;</Keywords>
<Keywords name="Keywords1">AnyCPU x86 x64</Keywords>
<Keywords name="Keywords2">TargetFolderName &lt;ProjectReference &lt;/ProjectReference&gt; &#x000D;&#x000A;Condition condition</Keywords>
<Keywords name="Keywords3">&lt;Reference &lt;/Reference&gt; /&gt; &lt;Private &lt;Compile &lt;/Compile&gt; &lt;EmbeddedResource &lt;/EmbeddedResource&gt; TargetFileName &lt;BootstrapperPackage &lt;Folder &lt;CustomParameter &lt;Resource &lt;Content &lt;/Content&gt; &lt;VSToolsPath &lt;FlavorProperties&#x0009;&lt;Page &lt;/Page&gt; &lt;SolutionDir /SolutionDir&gt;</Keywords>
<Keywords name="Keywords4">Include true Name Value ReplaceParameters HintPath Private</Keywords>
<Keywords name="Keywords5">&lt;None &lt;/None&gt; false</Keywords>
<Keywords name="Keywords6">&lt;Import &lt;ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch&gt; &lt;/ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch&gt;</Keywords>
<Keywords name="Keywords7">processorArchitecture PublicKeyToken Culture Version</Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00&apos; 01 02&apos; 03&lt;RootNamespace 03&lt;/RootNamespace 03&lt;AssemblyName 03&lt;/AssemblyName 03&lt;TargetFrameworkVersion 03&lt;/TargetFrameworkVersion 03&lt;ApplicationIcon 03&lt;/ApplicationIcon 03&lt;AllowUnsafeBlocks 03&lt;/AllowUnsafeBlocks 04 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 05&gt; 06&lt;PlatformTarget 06&lt;Configuratio 06&lt;Platfor 06&lt;ProjectItem 06&lt;/ProjectItem 06&lt;/Configuration 06&lt;/Platform 06&lt;Prefer32Bit 06&lt;/Prefer32Bit 06&lt;CurrentPlatform 06&lt;/CurrentPlatform 06&lt;Whe 06&lt;/When 07= 08&gt; 08n 08m 08&gt; 08&gt; 08&gt; 08&gt; 08&gt; 08&gt; 08&gt; 08&gt; 08n 08&gt; 09&lt;/AppDesignerFolder 09&lt;/ApplicationRevision 09&lt;/ApplicationVersion 09&lt;/AssemblyKeyContainerName 09&lt;/AssemblyOriginatorKeyFile 09&lt;/AssemblyOriginatorKeyMode 09&lt;/AutoAssignPort 09&lt;/AutoGen 09&lt;/BaseAddress 09&lt;/BootstrapperEnabled 09&lt;/BootstrapperPackage 09&lt;/ConfigurationOverrideFile 09&lt;/CreateNewFolder 09&lt;/CustomServerUrl 09&lt;/DefaultClientScript 09&lt;/DefaultName 09&lt;/DefaultTargetSchema 09&lt;/DefineDebug 09&lt;/DefineTrace 09&lt;/DelaySign 09&lt;/DependentUpon 09&lt;/Description 09&lt;/DesignTime 09&lt;/DevelopmentServerPort 09&lt;/DevelopmentServerVPath 09&lt;/EnableLocationBrowseButton 09&lt;/FileAlignment 09&lt;/FileUpgradeFlags 09&lt;/FlavorProperties 09&lt;/Folder 09&lt;/Generator 09&lt;/HintPath 09&lt;/IISExpressAnonymousAuthentication 09&lt;/IISExpressSSLPort 09&lt;/IISExpressUseClassicPipelineMod 09&lt;/IISExpressWindowsAuthentication 09&lt;/IISUrl 09&lt;/IISUrl 09&lt;/Icon 09&lt;/Install 09&lt;/Install 09&lt;/InstallFrom 09&lt;/IsWebBootstrapper 09&lt;/LastGenOutput 09&lt;/Link 09&lt;/LocationField 09&lt;/MapFileExtensions 09&lt;/MvcBuildViews 09&lt;/MyType 09&lt;/NTLMAuthentication 09&lt;/Name 09&lt;/NoWarn 09&lt;/NumberOfParentCategoriesToRollUp 09&lt;/OldToolsVersion 09&lt;/OptionCompare 09&lt;/OptionExplicit 09&lt;/OptionStrict 09&lt;/OutputType 09&lt;/PostBuildEvent 09&lt;/PreBuildEvent 09&lt;/Private 09&lt;/ProductName 09&lt;/ProductVersion 09&lt;/ProjectExtensions 09&lt;/ProjectGuid 09&lt;/ProjectSubType 09&lt;/ProjectType 09&lt;/ProvideDefaultName 09&lt;/PublishUrl 09&lt;/RegisterForComInterop 09&lt;/RemoveIntegerChecks 09&lt;/RequiredFrameworkVersion 09&lt;/RequiredTargetFramework 09&lt;/SaveServerSettingsInUserFile 09&lt;/SccAuxPath 09&lt;/SccLocalPath 09&lt;/SccProjectName 09&lt;/SccProvider 09&lt;/SchemaVersion 09&lt;/SortOrder 09&lt;/SpecificVersion 09&lt;/StartupObject 09&lt;/SubType 09&lt;/Target 09&lt;/TreatWarningsAsErrors 09&lt;/UpdateEnabled 09&lt;/UpdateInterval 09&lt;/UpdateIntervalUnits 09&lt;/UpdateMode 09&lt;/UpdatePeriodically 09&lt;/UpdateRequired 09&lt;/UpgradeBackupLocation 09&lt;/UseApplicationTrust 09&lt;/UseCustomServer 09&lt;/UseIIS 09&lt;/UseIISExpress 09&lt;/Visible 09&lt;/VisualStudio 09&lt;/WebProjectProperties 09&lt;AppDesignerFolder 09&lt;ApplicationRevision 09&lt;ApplicationVersion 09&lt;AssemblyKeyContainerName 09&lt;AssemblyOriginatorKeyFile 09&lt;AssemblyOriginatorKeyMode 09&lt;AutoAssignPort 09&lt;AutoGen 09&lt;BaseAddress 09&lt;BootstrapperEnabled 09&lt;ConfigurationOverrideFile 09&lt;CreateNewFolder 09&lt;CustomServerUrl 09&lt;DefaultClientScript 09&lt;DefaultHTMLPageLayout&lt;/DefaultHTMLPageLayout 09&lt;DefaultName 09&lt;DefaultTargetSchema 09&lt;DefineDebug 09&lt;DefineTrace 09&lt;DelaySign 09&lt;DependentUpon 09&lt;Description 09&lt;DesignTime 09&lt;DevelopmentServerPort 09&lt;DevelopmentServerVPath 09&lt;EnableLocationBrowseButton 09&lt;FileAlignment 09&lt;FileUpgradeFlags 09&lt;FolderName 09&lt;Generator 09&lt;HintPath 09&lt;IISExpressAnonymousAuthentication 09&lt;IISExpressSSLPort 09&lt;IISExpressUseClassicPipelineMode 09&lt;IISExpressWindowsAuthentication 09&lt;IISUrl 09&lt;Icon 09&lt;Install 09&lt;Install 09&lt;InstallFrom 09&lt;IsWebBootstrapper 09&lt;LastGenOutput 09&lt;Link 09&lt;LocationField 09&lt;MapFileExtensions 09&lt;MvcBuildViews 09&lt;MyType 09&lt;NTLMAuthentication 09&lt;Name 09&lt;NoWarn 09&lt;NumberOfParentCategoriesToRollUp 09&lt;OldToolsVersion 09&lt;OptionCompare 09&lt;OptionExplicit 09&lt;OptionStrict 09&lt;OutputType 09&lt;PostBuildEvent 09&lt;PreBuildEvent 09&lt;Private 09&lt;ProductName 09&lt;ProductVersion 09&lt;ProjectExtensions 09&lt;ProjectGuid 09&lt;ProjectSubType 09&lt;ProjectType 09&lt;ProvideDefaultName 09&lt;PublishUrl 09&lt;RegisterForComInterop 09&lt;RemoveIntegerChecks 09&lt;RequiredFrameworkVersion 09&lt;RequiredTargetFramework 09&lt;SaveServerSettingsInUserFile 09&lt;SccAuxPath 09&lt;SccLocalPath 09&lt;SccProjectName 09&lt;SccProvider 09&lt;SchemaVersion 09&lt;SortOrder 09&lt;SpecificVersion 09&lt;StartupObject 09&lt;SubType 09&lt;Target 09&lt;TreatWarningsAsErrors 09&lt;UpdateEnabled 09&lt;UpdateInterval 09&lt;UpdateIntervalUnits 09&lt;UpdateMode 09&lt;UpdatePeriodically 09&lt;UpdateRequired 09&lt;UpgradeBackupLocation 09&lt;UseApplicationTrust 09&lt;UseCustomServer 09&lt;UseIIS 09&lt;UseIISExpress 09&lt;Visible 09&lt;VisualStudion 09&lt;WebProjectProperties 09&lt;StartAction 09&lt;StartProgram 09&lt;StartArguments 09&lt;/StartAction 09&lt;/StartProgram 09&lt;/StartArguments 09&lt;ReferencePath 09&lt;/ReferencePath 09&lt;CodeContracts 09&lt;/CodeContracts 09&lt;CustomToolNamespace 09&lt;/CustomToolNamespace 09&lt;ImplicitlyExpandTargetFramework 09&lt;/ImplicitlyExpandTargetFramework 10 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 11&gt; 12&lt;DefineConstants 12&lt;/DefineConstants 12&lt;CopyToOutputDirectory 12&lt;/CopyToOutputDirectory 13 14&gt; 14&gt; 14&gt; 14&gt; 14&gt; 15&lt;OutputPath 15&lt;/OutputPath 15&lt;DocumentationFile 15&lt;/DocumentationFile 16 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 17&gt; 18&lt;DebugSymbols 18&lt;/DebugSymbols 18&lt;DebugType 18&lt;/DebugType 18&lt;PlatformTarget 18&lt;/PlatformTarget 18&lt;ErrorReport 18&lt;/ErrorReport 18&lt;CodeAnalysis 18&lt;/CodeAnalysisRuleSet 18&lt;Optimize 18&lt;/Optimize 18&lt;DebugType 18&lt;/DebugType 18&lt;WarningLevel 18&lt;/WarningLevel 19 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 20&gt; 21DefineConstant 21ProjectNam 21Contain 21EndsWit 21MSBuildProjectNam 21OutputPat 21MSBuildProjectDirector 21NoWar 22 23s 23e 23s 23h 23e 23h 23y 23n</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="BF8080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="FF0000" bgColor="FFFFD5" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="9F0000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="FF0000" bgColor="FFFF80" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="00BF00" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="AA0000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="128" />
<WordsStyle name="DELIMITERS2" fgColor="0000FF" bgColor="FFFFAA" fontName="" fontStyle="0" nesting="3" />
<WordsStyle name="DELIMITERS3" fgColor="FF5300" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="261375" />
<WordsStyle name="DELIMITERS4" fgColor="6A6AFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="261120" />
<WordsStyle name="DELIMITERS5" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="006A00" bgColor="FFFFEA" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="E9E9E9" fontName="" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment