highlighting-kate 0.5.0.5 → 0.5.0.6
raw patch · 6 files changed
+42/−9 lines, 6 filesdep ~blaze-htmlPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
Dependency ranges changed: blaze-html
API changes (from Hackage documentation)
+ Text.Highlighting.Kate.Styles: zenburn :: Style
Files
- Highlight.hs +6/−1
- README +2/−2
- Text/Highlighting/Kate.hs +2/−2
- Text/Highlighting/Kate/Format/HTML.hs +5/−0
- Text/Highlighting/Kate/Styles.hs +24/−1
- highlighting-kate.cabal +3/−3
Highlight.hs view
@@ -8,8 +8,13 @@ import System.FilePath (takeFileName) import Data.Maybe (listToMaybe) import Data.Char (toLower)-import Text.Blaze.Renderer.String+#if MIN_VERSION_blaze_html(0,5,0)+import Text.Blaze.Html+import Text.Blaze.Html.Renderer.String+#else import Text.Blaze+import Text.Blaze.Renderer.String+#endif import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A
README view
@@ -161,8 +161,8 @@ kate/part/syntax/data There is information on the syntax highlighting definitions at-- http://docs.kde.org/stable/en/kdesdk/kate/highlight.html+<http://docs.kde.org/stable/en/kde-baseapps/kate/highlight.html>. See also+<http://kate-editor.org/2005/03/24/writing-a-syntax-highlighting-file/>. Thanks are due to all the authors of these syntax definitions.
Text/Highlighting/Kate.hs view
@@ -14,8 +14,8 @@ This one reads ruby code from stdin and writes HTML: > import Text.Highlighting.Kate-> import Text.Blaze.Renderer.String (renderHtml)-> import Text.Blaze (toHtml)+> import Text.Blaze.Html.Renderer.String (renderHtml)+> import Text.Blaze.Html (toHtml) > import Text.Blaze.Html5 as H > import Text.Blaze.Html5.Attributes as A >
Text/Highlighting/Kate/Format/HTML.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {- | Module : Text.Highlighting.Kate.Format.HTML Copyright : Copyright (C) 2008-2011 John MacFarlane@@ -14,7 +15,11 @@ formatHtmlInline, formatHtmlBlock, styleToCss ) where import Text.Highlighting.Kate.Types+#if MIN_VERSION_blaze_html(0,5,0)+import Text.Blaze.Html+#else import Text.Blaze+#endif import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A import Data.Monoid
Text/Highlighting/Kate/Styles.hs view
@@ -11,7 +11,7 @@ -} module Text.Highlighting.Kate.Styles ( pygments, kate, espresso, tango,- haddock, monochrome )+ haddock, monochrome, zenburn ) where import Text.Highlighting.Kate.Types @@ -136,5 +136,28 @@ , (CommentTok, defStyle{ tokenItalic = True }) , (AlertTok, defStyle{ tokenBold = True }) , (ErrorTok, defStyle{ tokenBold = True })+ ]+ }++-- | Style based on the popular zenburn vim color scheme+zenburn :: Style+zenburn = Style{+ backgroundColor = toColor "#303030"+ , defaultColor = toColor "#cccccc"+ , lineNumberColor = Nothing+ , lineNumberBackgroundColor = Nothing+ , tokenStyles =+ [ (KeywordTok, defStyle{ tokenColor = toColor "#f0dfaf" })+ , (DataTypeTok, defStyle{ tokenColor = toColor "#dfdfbf" })+ , (DecValTok, defStyle{ tokenColor = toColor "#dcdccc" })+ , (BaseNTok, defStyle{ tokenColor = toColor "#dca3a3" })+ , (FloatTok, defStyle{ tokenColor = toColor "#c0bed1" })+ , (CharTok, defStyle{ tokenColor = toColor "#dca3a3" })+ , (StringTok, defStyle{ tokenColor = toColor "#cc9393" })+ , (CommentTok, defStyle{ tokenColor = toColor "#7f9f7f" })+ , (OtherTok, defStyle{ tokenColor = toColor "#efef8f" })+ , (AlertTok, defStyle{ tokenColor = toColor "#ffcfaf" })+ , (FunctionTok, defStyle{ tokenColor = toColor "#efef8f" })+ , (ErrorTok, defStyle{ tokenColor = toColor "#c3bf9f" }) ] }
highlighting-kate.cabal view
@@ -1,5 +1,5 @@ Name: highlighting-kate-Version: 0.5.0.5+Version: 0.5.0.6 Cabal-Version: >= 1.6 Build-Type: Simple Category: Text@@ -144,7 +144,7 @@ cpp-options: -D_PCRE_LIGHT else Build-depends: regex-pcre-builtin- Build-Depends: parsec, mtl, blaze-html >= 0.4.2 && < 0.5+ Build-Depends: parsec, mtl, blaze-html >= 0.4.2 && < 0.6 Exposed-Modules: Text.Highlighting.Kate Text.Highlighting.Kate.Syntax Text.Highlighting.Kate.Types@@ -253,7 +253,7 @@ Executable Highlight Main-Is: Highlight.hs- Build-Depends: base, containers, blaze-html >= 0.4.2 && < 0.5, filepath+ Build-Depends: base, containers, blaze-html >= 0.4.2 && < 0.6, filepath if flag(pcre-light) cpp-options: -D_PCRE_LIGHT Ghc-Options: -W -O0 -rtsopts