comparison static/css/code/native.less @ 102:f872c643b056

Updates to snippet functionality (see details) Sorry about the large commit, but it was difficult to break it up as a lot of new functionality was introduced. Most of it is specific to the snippet feature but there are some other changes as well. Commit highlights: * Added the ability to switch the syntax highlighting colour scheme when viewing a snippet. This is currently done on a per-snippet basis only, but eventually it will be possible to set a default in your profile to have all the snippets you view use that colour scheme. There are currently 8 different colour schemes, all of which were taken from the default pygments stylesheets (some were modified). * Added a "num_views" field to the Snippet model, with the field being incremented any time the snippet view is called (raw or regular view). * Created a simple "explore" view that lists the recently-posted snippets. Will implement pagination and sorting by other attributes ("popularity", for example, based on number of views) as well. * Added a post-save hook to the User model to ensure that a Profile is created for every user as soon as the User itself is created. This alleviates the need for a get_profile method that checks if the user has a profile or not and creates one if necessary. (The code is currently still there, will be cleaned up soon). * Added back the wordwrap toggling feature. Currently, if you want to enable word-wrapping, the line numbers have to be hidden in order to ensure that the lines and their numbers don't go out of sync. This will be fixed soon. * History/diff view is back * And some other minor cosmetic changes. Note: since some existing models have been changed, you'll likely need to delete the existing sqlite database before running syncdb. The alternative is to determine the necessary column changes/additions and run the SQL query yourself.
author dellsystem <ilostwaldo@gmail.com>
date Fri, 31 Aug 2012 02:53:22 -0400
parents
children 7d753658dc0e
comparison
equal deleted inserted replaced
101:a8da60d611f7 102:f872c643b056
1 .highlight &.native {
2 background: @almostBlack;
3
4 .hll { background-color: #404040 }
5 .c { color: #999999; font-style: italic } /* Comment */
6 .err { color: #a61717; background-color: #e3d2d2 } /* Error */
7 .g { color: #d0d0d0 } /* Generic */
8 .k { color: #6ab825; font-weight: bold } /* Keyword */
9 .l { color: #d0d0d0 } /* Literal */
10 .n { color: #d0d0d0 } /* Name */
11 .o { color: #d0d0d0 } /* Operator */
12 .x { color: #d0d0d0 } /* Other */
13 .p { color: #d0d0d0 } /* Punctuation */
14 .cm { color: #999999; font-style: italic } /* Comment.Multiline */
15 .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
16 .c1 { color: #999999; font-style: italic } /* Comment.Single */
17 .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
18 .gd { color: #d22323 } /* Generic.Deleted */
19 .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
20 .gr { color: #d22323 } /* Generic.Error */
21 .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
22 .gi { color: #589819 } /* Generic.Inserted */
23 .go { color: #cccccc } /* Generic.Output */
24 .gp { color: #aaaaaa } /* Generic.Prompt */
25 .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
26 .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
27 .gt { color: #d22323 } /* Generic.Traceback */
28 .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
29 .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
30 .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
31 .kp { color: #6ab825 } /* Keyword.Pseudo */
32 .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
33 .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
34 .ld { color: #d0d0d0 } /* Literal.Date */
35 .m { color: #3677a9 } /* Literal.Number */
36 .s { color: #ed9d13 } /* Literal.String */
37 .na { color: #bbbbbb } /* Name.Attribute */
38 .nb { color: #24909d } /* Name.Builtin */
39 .nc { color: #447fcf; text-decoration: underline } /* Name.Class */
40 .no { color: #40ffff } /* Name.Constant */
41 .nd { color: #ffa500 } /* Name.Decorator */
42 .ni { color: #d0d0d0 } /* Name.Entity */
43 .ne { color: #bbbbbb } /* Name.Exception */
44 .nf { color: #447fcf } /* Name.Function */
45 .nl { color: #d0d0d0 } /* Name.Label */
46 .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
47 .nx { color: #d0d0d0 } /* Name.Other */
48 .py { color: #d0d0d0 } /* Name.Property */
49 .nt { color: #6ab825; font-weight: bold } /* Name.Tag */
50 .nv { color: #40ffff } /* Name.Variable */
51 .ow { color: #6ab825; font-weight: bold } /* Operator.Word */
52 .w { color: #666666 } /* Text.Whitespace */
53 .mf { color: #3677a9 } /* Literal.Number.Float */
54 .mh { color: #3677a9 } /* Literal.Number.Hex */
55 .mi { color: #3677a9 } /* Literal.Number.Integer */
56 .mo { color: #3677a9 } /* Literal.Number.Oct */
57 .sb { color: #ed9d13 } /* Literal.String.Backtick */
58 .sc { color: #ed9d13 } /* Literal.String.Char */
59 .sd { color: #ed9d13 } /* Literal.String.Doc */
60 .s2 { color: #ed9d13 } /* Literal.String.Double */
61 .se { color: #ed9d13 } /* Literal.String.Escape */
62 .sh { color: #ed9d13 } /* Literal.String.Heredoc */
63 .si { color: #ed9d13 } /* Literal.String.Interpol */
64 .sx { color: #ffa500 } /* Literal.String.Other */
65 .sr { color: #ed9d13 } /* Literal.String.Regex */
66 .s1 { color: #ed9d13 } /* Literal.String.Single */
67 .ss { color: #ed9d13 } /* Literal.String.Symbol */
68 .bp { color: #24909d } /* Name.Builtin.Pseudo */
69 .vc { color: #40ffff } /* Name.Variable.Class */
70 .vg { color: #40ffff } /* Name.Variable.Global */
71 .vi { color: #40ffff } /* Name.Variable.Instance */
72 .il { color: #3677a9 } /* Literal.Number.Integer.Long */
73 }