summaryrefslogtreecommitdiff
path: root/lib/coderay/styles
Commit message (Collapse)AuthorAgeFilesLines
* fix additional scrollbarKornelius Kalnbach2011-10-151-1/+0
|
* backgroun-color fine tuning (alpha)Kornelius Kalnbach2011-09-181-7/+7
|
* fix color for :predefined_constant in Alpha styleKornelius Kalnbach2011-09-091-2/+2
|
* pretty (longer) token class names; closes #347Kornelius Kalnbach2011-08-193-365/+85
|
* lighter diff background colorsmurphy2011-07-081-2/+2
|
* use brighter colors for diff symbolsmurphy2011-07-071-4/+4
|
* #309 Improved highlighting of Ruby inside diffsmurphy2011-06-221-2/+2
|
* changed the color of :char from blue-ish to red-ish (alpha style)murphy2011-05-211-6/+7
|
* fixed highlighted numbers in alpha stylemurphy2011-03-071-1/+2
|
* Code cleanup.murphy2010-11-211-2/+2
|
* Fix invalid HTML markup for line tokens (use span + CSS instead of div).murphy2010-09-222-1/+3
|
* Fixed a:target color.murphy2010-09-211-5/+5
|
* Added ! important rules for line numbers in the Alpha style.murphy2010-08-231-0/+5
|
* Alpha style: Removed background color for :inline_delimiter.murphy2010-06-271-2/+1
|
* Updated Alpha style: less bolded tokens, user-select:none for line numbers ↵murphy2010-06-161-34/+37
| | | | (closes #226), removed osolete .rx .fu style.
* Added :string :modifier color for Alpha style.murphy2010-06-151-0/+1
|
* Added :eyecatcher token type (for inline diff highlighting) and improvedmurphy2010-06-011-11/+14
| | | | | some nested styles.
* Python scanner highlights docstrings as comments (see #190).murphy2010-04-021-0/+2
|
* Java Scanner: Package names are recognized, along with some code cleanup. ↵murphy2010-04-022-0/+2
| | | | Closes #210.
* New HTML Encoder option :line_number_anchors (closes #208).murphy2010-04-023-37/+18
| | | | | Also removed the :list wrapping style, and made a lot of cleanup in the styles. See Changes.textile.
* HTML encoder is HTML 5 and CSS 3 compatible (closes #215).murphy2010-04-021-1/+1
| | | | | | | | This also means it's incompatible to previous versions of HTML and CSS. Also, the output may not show correctly on IE. I officially drop support for Internet Explorer with no regrets.
* Improved the styles a bit.murphy2010-03-312-6/+6
|
* Use new :alpha style be default. This means IE will have problems with the ↵murphy2010-03-311-1/+1
| | | | colors.
* Renamed token_classes to token_kinds (closes #122).murphy2010-03-302-11/+6
| | | | | | | | | * *RENAMED* from ClassOfKind. The term "token class" is no longer used in CodeRay. Instead, tokens have _kinds_. * *RENAMED* TokenKindFilter to TokenClassFilter. * *ADDED* documentation on encoders affected by the term change. * *REMOVED* token kinds :attribute_name_fat, :attribute_value_fat, :operator_fat, :tag_fat, and :xml_text. * *ADDED* token kind :filename.
* A new color style using HSLA colors (alpha channel, issue #199)murphy2010-02-171-0/+145
|
* Cleanups.murphy2009-12-301-1/+1
|
* Tweaking colors for :pre_type, :pseudo_class and :exception.murphy2009-10-181-3/+3
|
* Improved Python scanner (issue #41).murphy2009-04-221-0/+2
| | | | | | | | * fixed numeric literals * better Python 3 support * bugfixes, optimizations * added two more test files
* Many improvements to PHP Scanner.murphy2009-04-201-4/+5
| | | | | | | | * added lots of built-in functions, constants, syntax rule fixes... * automatic HTML/PHP document recognition; experimental! * cYcnus style adjusted; inline_delimiter outside of token group has a style now. * clean-up still not finished
* New feature: HTML encode option :highlight_lines. See documentation.murphy2009-01-221-0/+1
| | | | | | * The scanner test suite uses it and highlights the lines that differ after a failed complete test in *.actual.html.
* Updated cYcnus style (grayscale colors).murphy2009-01-131-5/+5
|
* Completed YAML Scanner (closes #34).murphy2009-01-011-0/+1
| | | | | | | | | | | | | YAML Scanner: * Added another example (multiline). * Added multiline string recognition. * This should be enough for most people. Else: * New method: Scanner#column (very useful and fast!) * Added new token type :doctype, used also by HTML scanner. * coderay_suite: minor output tweaks.
* New: *YAML* (#53). Preparing for version 0.8.1.murphy2008-10-201-4/+4
| | | | | | | | | | | | | | * Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners.
* New: *JSON* (closes #53). Version 0.8 is near!murphy2008-10-081-5/+8
| | | | | | | | | | | | * Simple and really nice scanner (I think), produces colorful output. * Checked against strange examples from Ruby's JSON lib. More changes: * Changed version number. Finally! * Added some token styles for :key token group. * cYcnus style: chars inside of strings are highlighted purple instead of blue. * murphy style needs work.
* New: *Simple Diff Scanner* (closes #22).murphy2008-09-302-0/+20
| | | | | | | | | | | | | | * Highlights unified diffs, especially like the ones svn diff outputs. * Changes to make highlighting of whole lines were necessary. * I added two example files. More changes: * Added token classes :head, :delete, :insert, and :change along with styles. * Added two new special token types: :begin_line and :end_line. They mark token groups that explicitly span whole lines and should be highlighted as such. * The HTML encoder converts these new tokens to DIVs. May need more work. * The Debug Encoder uses square brackets for line tokens. * Some cleanups.
* New: *Java Scanner* (closes #42).murphy2008-09-211-0/+1
| | | | | | | | | | | | | | | | | | | * Based on JavaScript, does a good job, but may need more polish. * Java::BuiltinTypes::List is a helper constant that contains 2389 Java types. ** The list was generated from TextMate's Java bundle with the help of SimpleRegexpScanner. * I added the JRuby core classes as example code for testing (1.8 MB) JavaScript Scanner: * Fixed recognition of floats and algebraic signs. ** Still needs work - we need to distinguish i-1 from i+-1. More changes: * New: "SimpleRegexpScanner":http://murfy.de/simple-regexp-scanner * Added new token class :annotation along with CSS styles. ** Should be useful for Python, too. * coderay_suite warns if no scanner was found for this language. * PluginHost#default can be called without parameter (will return default id)
* New: *CSS Scanner* (closes #29).murphy2008-09-181-1/+4
| | | | | | | | | | * Based on Stefan Walk's implementation, with fixes, enhancements and speedups. * It seems to be fairly fast and highlights nicely. * I added the styles for Ignis Draconis, S5, and YUI as example code for testing. More changes: * Added three new token classes, :important, :pseudo_class, and :value, along with CSS styles.
* New: *JavaScript Scanner* (closes #23).murphy2008-09-162-1/+6
| | | | | | | | | | | * It's quite good and fast, but still a beta. * I included Prototype and script.aculo.us as example code for testing. More changes: * Added two new token classes, :keyword and :key, along with CSS styles. ** Actually, we should use :keyword for most scanners that now use :reserved. * HTML Encoder: The CSS parser understands multiple selectors separated by commas.
* New Scanner: Scheme (thanks closure!)murphy2007-01-012-4/+4
| | | | | | | | | | | | | | | Test and example added. Token changed: operator_fat instead of operator_name (for use with LISP-like parentheses). Added file_extension for Scanners. Improved CodeRay::Suite: - uses scanners file extension now - example parameter is now named "only" - only param overwrite MAX_CODE_SIZE_TO_HIGHLIGHT
* Done:murphy2007-01-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | General: - Declared version 0.7.6. - Moved WordList, CaseIgnoringWordList, Plugin, PluginHost and FileType into CodeRay namespace. CodeRay should be "clean" now, except for the String#to_unix helper function. - Fixed a bit of documentation. - CodeRay binary: Prepare for streaming switch. Scanners: - Added code= alias for string=. - Added streaming? method: Is this Scanner in streaming mode? - Enhanced error info a bit. - Ruby scanner: - Highlights Regexp heredocs now. They may be added to Ruby 1.9. - Speedups with better support for Ruby 1.9. - Change in whitespace handling (faster and cleaner now.) - Speed up some operator recognition (saving two string comparisons). - Declared C and Plaintext Scanners as Streamable. Tokens: - Changed Text/Block token recognition (#is_a? ::String for Ruby 1.9 support). - New method: Tokens#text yields the code string. - text_size fixed. - Token kind shortcuts (like r for reserved) are now defined in token_classes.rb (instead of encoders/html/classes.rb). Encoders: - Debug Scanner added. - Base encoder class adds to @out when encoding (if @out is set). - A little Tokens scanner speedup. - Text encoder uses text_token. - Statistic encoder counts block tokens. - Smaller changes in XML and HTML encoders. Styles: - cYcnus style defines a debug class now. Duo: - scanner and encoder are now methods. Scanner and Encoder are created (and cached) when needed, not earlier. - Documented. Tests: - Disabled encoder and scanner list check (breaks too often). - Added identity test, which checks if tokens#text matches the input. - Added nocolor switch. Developer tools: - Benchmark uses Encoder#file_extension for output now. - Rakefile: Support for 19, 18, yarv and ruby switches for easy comparing different Ruby versions. - Statistic: Demos are no longer tests.
* Ruby scanner: #{...} delimiters are now :inline_delimiter to solve CSS problem.murphy2006-10-181-1/+1
| | | | | | New token: :inline_delimiter Scanner tests suite revamped: colorization, split up into methods.
* Tests:murphy2006-10-153-251/+251
| | | | | | | | | | | | | | | | - improved coderay_suite.rb (random and shuffled tests, max parameter, scannerlang->lang, sorted test cases...) - changed html output extension to .actual.html to svn:ignore them - fixed some tests (deleted $Id$ etc.) - made XHTML testcase work Scanners: - fixed HTML, Delphi and Nitro scanners thanks to new tests Engine: - Tokens#fix and #fix! added (yet to be tested) - improved Scanner#raise_inspect a bit Converted more files to UNIX format (go away, stinkin' \r!)
* Big re-indenting - no more tabs!murphy2006-07-103-39/+39
|
* Re-indented everything. Sorry to break the blame chain.murphy2006-04-163-41/+41
|
* styles/_map.rb added. :cycnus is now default style. html/css.rb adjusted.murphy2006-04-151-0/+7
| | | | | | | | | | ROADMAP and TODO updated. Ruby scanner: Fixed a bug: Fancy strings don't allow \w delimiters. They _do_ also allow whitespace delimiters, but adding this would cause many scan errors. So I leave this bug unfixed.
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-101-78/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | CSS style changes/enhancments (mainly the new background color for inline code, affects all Ruby code.) Demos and tests adjusted. Plugin: new PluginHost::default method. Scanner: - New setup method - ability to re-use a scanner - ability to keep the tokens - minor changes to token caching and string flattening Encoder: Error if token content is neither String nor Symbol. HTML encoder: - more warnings for unclosed tokens - output now UTF-8 Ruby Scanner: - bug: symbols before => now do not include =; {:foo=>bar} is valid Ruby code - try to close all open tokens - constants now all with specific namespace (for speed, I hope) Styles: new :entity/en class. Test suite now gives hinted HTML output.
* Some fixes for cYcnus style (capital Y makes problems)murphy2005-12-051-1/+1
| | | | | Fixes in the coderay_rdoc_template.
* New Style system added - still beta.murphy2005-11-132-0/+238
Demos adjusted coderay.rb, encoders/html.rb, encoders/div.rb adjusted. encoders/html/* files rebuild.