-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pull request for dracula theme. #1796
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6cb6bba
adding dracula theme
danvilar c54f49c
Merge branch 'pygments:master' into master
danvilar f0ba06c
Added highlight and line colours
danvilar 35cfc3e
Merge branch 'master' of https://github.com/danvilar/pygments
danvilar e8d4cad
fixed module name underline
danvilar File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
""" | ||
pygments.styles.dracula | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Pygments version of `Dracula` from https://github.com/dracula/dracula-theme. | ||
|
||
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. | ||
:license: BSD, see LICENSE for details. | ||
|
||
Based on the Dracula Theme for pygments by Chris Bracco. | ||
See https://github.com/dracula/pygments/tree/fee9ed5613d1086bc01b9d0a5a0e9867a009f571 | ||
""" | ||
|
||
from pygments.style import Style | ||
from pygments.token import Keyword, Name, Comment, String, Error, \ | ||
Literal, Number, Operator, Other, Punctuation, Text, Generic, \ | ||
Whitespace | ||
|
||
class DraculaStyle(Style): | ||
|
||
background_color = "#282a36" | ||
default_style = "" | ||
|
||
styles = { | ||
Comment: "#6272a4", | ||
Comment.Hashbang: "#6272a4", | ||
Comment.Multiline: "#6272a4", | ||
Comment.Preproc: "#ff79c6", | ||
Comment.Single: "#6272a4", | ||
Comment.Special: "#6272a4", | ||
|
||
Generic: "#f8f8f2", | ||
Generic.Deleted: "#8b080b", | ||
Generic.Emph: "#f8f8f2 underline", | ||
Generic.Error: "#f8f8f2", | ||
Generic.Heading: "#f8f8f2 bold", | ||
Generic.Inserted: "#f8f8f2 bold", | ||
Generic.Output: "#44475a", | ||
Generic.Prompt: "#f8f8f2", | ||
Generic.Strong: "#f8f8f2", | ||
Generic.Subheading: "#f8f8f2 bold", | ||
Generic.Traceback: "#f8f8f2", | ||
|
||
Error: "#f8f8f2", | ||
|
||
Keyword: "#ff79c6", | ||
Keyword.Constant: "#ff79c6", | ||
Keyword.Declaration: "#8be9fd italic", | ||
Keyword.Namespace: "#ff79c6", | ||
Keyword.Pseudo: "#ff79c6", | ||
Keyword.Reserved: "#ff79c6", | ||
Keyword.Type: "#8be9fd", | ||
|
||
Literal: "#f8f8f2", | ||
Literal.Date: "#f8f8f2", | ||
|
||
Name: "#f8f8f2", | ||
Name.Attribute: "#50fa7b", | ||
Name.Builtin: "#8be9fd italic", | ||
Name.Builtin.Pseudo: "#f8f8f2", | ||
Name.Class: "#50fa7b", | ||
Name.Constant: "#f8f8f2", | ||
Name.Decorator: "#f8f8f2", | ||
Name.Entity: "#f8f8f2", | ||
Name.Exception: "#f8f8f2", | ||
Name.Function: "#50fa7b", | ||
Name.Label: "#8be9fd italic", | ||
Name.Namespace: "#f8f8f2", | ||
Name.Other: "#f8f8f2", | ||
Name.Tag: "#ff79c6", | ||
Name.Variable: "#8be9fd italic", | ||
Name.Variable.Class: "#8be9fd italic", | ||
Name.Variable.Global: "#8be9fd italic", | ||
Name.Variable.Instance: "#8be9fd italic", | ||
|
||
Number: "#ffb86c", | ||
Number.Bin: "#ffb86c", | ||
Number.Float: "#ffb86c", | ||
Number.Hex: "#ffb86c", | ||
Number.Integer: "#ffb86c", | ||
Number.Integer.Long: "#ffb86c", | ||
Number.Oct: "#ffb86c", #ffb86c | ||
|
||
Operator: "#ff79c6", | ||
Operator.Word: "#ff79c6", | ||
|
||
Other: "#f8f8f2", | ||
|
||
Punctuation: "#f8f8f2", | ||
|
||
String: "#bd93f9", | ||
String.Backtick: "#bd93f9", | ||
String.Char: "#bd93f9", | ||
String.Doc: "#bd93f9", | ||
String.Double: "#bd93f9", | ||
String.Escape: "#bd93f9", | ||
String.Heredoc: "#bd93f9", | ||
String.Interpol: "#bd93f9", | ||
String.Other: "#bd93f9", | ||
String.Regex: "#bd93f9", | ||
String.Single: "#bd93f9", | ||
String.Symbol: "#bd93f9", | ||
|
||
Text: "#f8f8f2", | ||
|
||
Whitespace: "#f8f8f2" | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add the various
linenos
styles and thehighlight
color as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apologise for the delay, I have been adapting to my new job. I believe I added everything you asked for please correct me if I'm wrong 😁. Also, I don't understand why it's failing that specific test.
Thanks!