Skip to content

Commit

Permalink
Use Dracula colours for syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed Apr 1, 2024
1 parent 4ce3cdf commit 1d6cc96
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
Expand Up @@ -67,7 +67,7 @@ public class MyDbConfiguration : DbConfiguration
The first part of the configuration is a hack to register the ADO.NET provider at runtime, by dynamically adding a new configuration entry to the `system.data` section. The second part registers the Entity Framework provider. We also need to modify the configuration file to include the connection string. You can use any configuration provider supported by ASP.NET 5, I'm using `config.json` here because it's the default provider.


```js
```json
{
"Data": {
"DefaultConnection": {
Expand Down
Expand Up @@ -22,7 +22,7 @@ Microsoft.Common.CurrentVersion.targets(2867,5): error MSB3552: Resource file "*

It turns out this is caused by a long-standing MSBuild bug: [Wildcard expansion is silently disabled when a wildcard includes a file over MAX_PATH](https://github.com/Microsoft/msbuild/issues/406){rel=nofollow}. The `Microsoft.NET.Sdk.DefaultItems.props` file bundled with .NET Core includes a section that looks like this:

```
```xml
<EmbeddedResource
Include="**/*.resx"
Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)"
Expand Down
46 changes: 23 additions & 23 deletions Daniel15.Web/wwwroot/Content/css/syntax-highlighting.less
@@ -1,38 +1,38 @@
pre {
background-color: #1E1E1E;
color: #DADADA;
background-color: #282A36;
color: #F8F8F2;
padding: 8px;

.htmlServerSideScript {
color: #FFFF00;
}

.htmlComment {
color: #57A64A;
color: #6272A4;
}

.htmlTagDelimiter {
color: #569CD6;
color: #808080;
}

.htmlElementName {
color: #A31515;
color: #FF79C6;
}

.htmlAttributeName {
color: #FF0000;
color: #50FA7B;
}

.htmlAttributeValue {
color: #569CD6;
color: #F1FA8C;
}

.htmlOperator {
color: #569CD6;
color: #FF79C6;
}

.comment {
color: #57A64A;
color: #6272A4;
}

.xmlDocTag {
Expand All @@ -44,31 +44,31 @@ pre {
}

.string {
color: #D69D85;
color: #F1FA8C;
}

.stringCSharpVerbatim {
color: #D69D85;
}

.keyword {
color: #569CD6;
color: #FF79C6;
}

.preprocessorKeyword {
color: #569CD6;
}

.htmlEntity {
color: #FF0000;
color: #00a0a0;
}

.jsonKey {
color: #FF8700;
color: #8BE9FD;
}

.jsonString {
color: #008B8B;
color: #F1FA8C;
}

.jsonNumber {
Expand All @@ -80,15 +80,15 @@ pre {
}

.xmlAttribute {
color: #92CAF4;
color: #50FA7B;
}

.xmlAttributeQuotes {
color: #569CD6;
color: #F1FA8C;
}

.xmlAttributeValue {
color: #569CD6;
color: #F1FA8C;
}

.xmlCDataSection {
Expand All @@ -100,27 +100,27 @@ pre {
}

.xmlDelimiter {
color: #808080;
color: #F8F8F2;
}

.xmlName {
color: #E6E6E6;
color: #FF79C6;
}

.className {
color: #4EC9B0;
}

.cssSelector {
color: #A31515;
color: #50FA7B;
}

.cssPropertyName {
color: #FF0000;
color: #8BE9FD;
}

.cssPropertyValue {
color: #569CD6;
color: #F8F8F2;
}

.sqlSystemFunction {
Expand Down Expand Up @@ -185,7 +185,7 @@ pre {
}

.number {
color: #B5CEA8;
color: #BD93F9;
}

.operator {}
Expand Down

0 comments on commit 1d6cc96

Please sign in to comment.