Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Encoder#to_proc is obsolete. | murphy | 2010-06-29 | 1 | -5/+0 | |
| | ||||||
* | Improved JSON encoder: Loading of json library in JRUBY, error messages, ↵ | murphy | 2010-06-29 | 1 | -35/+14 | |
| | | | | "early death" by loading it when the encoder is loaded. | |||||
* | Removing tests from library files. They live now in test/unit. | murphy | 2010-06-29 | 8 | -329/+2 | |
| | ||||||
* | More speedups for HTML encoding (numbering, CSS styles, Ruby 1.9). | murphy | 2010-06-27 | 3 | -33/+17 | |
| | ||||||
* | Trying out a simplified, faster method of HTML encoding. | murphy | 2010-06-27 | 1 | -42/+41 | |
| | ||||||
* | Cleanups in Encoders::HTML::Output. | murphy | 2010-06-01 | 3 | -10/+4 | |
| | ||||||
* | Fixed Text Encoder. | murphy | 2010-06-01 | 1 | -2/+25 | |
| | ||||||
* | Cleanup, documentation and enhancements to the Filters: | murphy | 2010-05-18 | 4 | -32/+111 | |
| | | | | | | | * TokenKindFilter handles groups (closes #223). * Added :docstring to the default KINDS_NOT_LOC list. * Also fixed a problem with the :tokens option in Scanners. | |||||
* | Fixed a problem with line tokens when using :hint => :debug in the HTML encoder. | murphy | 2010-05-05 | 1 | -2/+2 | |
| | ||||||
* | Fixes for YAML encoder, Filter, and tests and API enhancements for Duo. | murphy | 2010-05-05 | 2 | -10/+38 | |
| | ||||||
* | Got rid of the old streaming system (see #142). | murphy | 2010-05-01 | 8 | -8/+0 | |
| | ||||||
* | Direct Streaming! See #142 and Changes.textile. | murphy | 2010-05-01 | 11 | -193/+338 | |
| | ||||||
* | Fixed a buggy warning. | murphy | 2010-04-28 | 1 | -1/+1 | |
| | ||||||
* | Python scanner highlights docstrings as comments (see #190). | murphy | 2010-04-02 | 1 | -1/+29 | |
| | ||||||
* | New HTML Encoder option :line_number_anchors (closes #208). | murphy | 2010-04-02 | 3 | -55/+53 | |
| | | | | | 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). | murphy | 2010-04-02 | 2 | -6/+3 | |
| | | | | | | | | 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. | |||||
* | Upporting changes from 0.9.2 (vs. 0.9.1). | murphy | 2010-03-31 | 2 | -5/+23 | |
| | ||||||
* | Use new :alpha style be default. This means IE will have problems with the ↵ | murphy | 2010-03-31 | 1 | -1/+1 | |
| | | | | colors. | |||||
* | Improved Terminal encoder (documentation, handling of line tokens). | murphy | 2010-03-30 | 1 | -57/+81 | |
| | ||||||
* | Added alias :remove_comments for CommentFilter. | murphy | 2010-03-30 | 1 | -0/+1 | |
| | ||||||
* | Added documentation to encoders; more code cleanups. | murphy | 2010-03-30 | 12 | -23/+113 | |
| | ||||||
* | Renamed token_classes to token_kinds (closes #122). | murphy | 2010-03-30 | 5 | -106/+135 | |
| | | | | | | | | | * *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. | |||||
* | Renamed Terminal encoder, cleanups. | murphy | 2010-01-06 | 2 | -7/+8 | |
| | ||||||
* | Encoders::HTML#token's second parameter is no longer optional. | murphy | 2010-01-06 | 1 | -1/+1 | |
| | ||||||
* | Cleanups. | murphy | 2010-01-06 | 1 | -2/+2 | |
| | ||||||
* | Cleanup. | murphy | 2010-01-01 | 1 | -1/+1 | |
| | ||||||
* | Fixed example tests. | murphy | 2009-12-31 | 3 | -4/+67 | |
| | | | | | | | | | | | * test:clean task also deletes .expected.html files * LinesOfCode encoder can deal with tokens that have no scanner. Tests were added for this. * JSON encoder load rubygems if necessary. * NEW :loc as an alias for :lines_of_code * NEW Scanner methods marshal_dump, marshal_load FIXED Tokens dumping (failed while trying to dump @scanner) | |||||
* | JSON encoder: New format to preserve all information and be more accessible ↵ | murphy | 2009-12-30 | 1 | -2/+47 | |
| | | | | for JavaScript programmers (each token is an object). Also a refactorization. Added tests. | |||||
* | Cleanup. | murphy | 2009-12-30 | 1 | -2/+1 | |
| | ||||||
* | Filters: Cleanups, refactorization, tests. | murphy | 2009-12-30 | 3 | -6/+144 | |
| | ||||||
* | Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to ↵ | murphy | 2009-12-28 | 1 | -0/+137 | |
| | | | | trunk. | |||||
* | LinesOfCode: Language dependent via KINDS_NOT_LOC, documentation. | murphy | 2009-10-18 | 1 | -1/+16 | |
| | ||||||
* | TokenClassFilter: Support for :exclud => :all. | murphy | 2009-10-18 | 1 | -2/+3 | |
| | ||||||
* | We don't need Tokens encoder any more. | murphy | 2009-10-10 | 1 | -44/+0 | |
| | ||||||
* | Added LinesOfCode encoder (issue #123) - simple version. | murphy | 2009-06-29 | 1 | -0/+19 | |
| | ||||||
* | Renamed TokenFilter to TokenClassFilter. | murphy | 2009-06-28 | 2 | -5/+5 | |
| | ||||||
* | Added a Filter class; filters inherit from it and yield tokens. | murphy | 2009-06-20 | 3 | -11/+27 | |
| | | | | | | | You can write something like this now: @CodeRay.scan('puts "Hello, world"! # secret', :ruby).token_filter(:exclude => [:comment]).div@ | |||||
* | * Improved implementation of Encoder *token callbacks. | murphy | 2009-06-20 | 6 | -12/+56 | |
| | | | | | | | | * Documentation for these methods. * Added two new encoders: CommentFilter < TokenFilter. * Simplified Text encoder. * Code cleanup in HTML encoder subclasses. | |||||
* | Fixed XML Encoder; closes #94. | murphy | 2009-06-09 | 1 | -1/+1 | |
| | ||||||
* | Removed obsolete :level property from HTML Encoder. | murphy | 2009-06-07 | 1 | -1/+1 | |
| | | | | | Thanks to Gavin for pointing that out. | |||||
* | Changed a $DEBUG raise into a puts (issue #99). | murphy | 2009-05-02 | 1 | -1/+1 | |
| | | | | Thanks to sunaku for reporting this. | |||||
* | Updated some comments for XML and HTML encoder. | murphy | 2009-04-20 | 2 | -1/+1 | |
| | | | | | | * XML encoder is actually broken! REXML fault? * Firefox can handle long HTML tables now. | |||||
* | New: *JSON Encoder* | murphy | 2009-04-20 | 1 | -0/+19 | |
| | | | | | Very simple. Not streamable yet. | |||||
* | Added a :title option for the HTML Encoder. Closes #55. | murphy | 2009-04-14 | 2 | -2/+18 | |
| | ||||||
* | New feature: HTML encode option :highlight_lines. See documentation. | murphy | 2009-01-22 | 2 | -1/+22 | |
| | | | | | | * The scanner test suite uses it and highlights the lines that differ after a failed complete test in *.actual.html. | |||||
* | Fixes for Ruby 1.9. | murphy | 2008-12-25 | 1 | -45/+46 | |
| | ||||||
* | New: *YAML* (#53). Preparing for version 0.8.1. | murphy | 2008-10-20 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | * 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: *Simple Diff Scanner* (closes #22). | murphy | 2008-09-30 | 4 | -3/+40 | |
| | | | | | | | | | | | | | | * 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. | |||||
* | Optimized CSS styles, improved coderay_suite, new HTML test. | murphy | 2008-09-24 | 1 | -1/+1 | |
| | | | | | | | * CSS styles are shortened more to optimize HTML output. * Added a longer example file for the HTML Scanner. * coderay_suite prints more accurate and sensible benchmarks. | |||||
* | New: *JavaScript Scanner* (closes #23). | murphy | 2008-09-16 | 1 | -8/+13 | |
| | | | | | | | | | | | * 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. |