summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/helpers/html_helper.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-11-05 02:26:24 +0000
committermurphy <murphy@rubychan.de>2005-11-05 02:26:24 +0000
commit5ffcc03ee3df300cef8c717f3c3b7d54643d82ce (patch)
treed37f72537b691a44c773a60e97545a4f296827d9 /lib/coderay/encoders/helpers/html_helper.rb
parent945ff36092f8160fc3ec1247e9df8816313e6fa0 (diff)
downloadcoderay-5ffcc03ee3df300cef8c717f3c3b7d54643d82ce.tar.gz
New helper module scheme, step 2
Diffstat (limited to 'lib/coderay/encoders/helpers/html_helper.rb')
-rw-r--r--lib/coderay/encoders/helpers/html_helper.rb69
1 files changed, 0 insertions, 69 deletions
diff --git a/lib/coderay/encoders/helpers/html_helper.rb b/lib/coderay/encoders/helpers/html_helper.rb
deleted file mode 100644
index 6a2938e..0000000
--- a/lib/coderay/encoders/helpers/html_helper.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-module CodeRay module Encoders
-
- class HTML
-
- ClassOfKind = {
- :attribute_name => 'an',
- :attribute_name_fat => 'af',
- :attribute_value => 'av',
- :attribute_value_fat => 'aw',
- :bin => 'bi',
- :char => 'ch',
- :class => 'cl',
- :class_variable => 'cv',
- :color => 'cr',
- :comment => 'c',
- :constant => 'co',
- :content => 'k',
- :definition => 'df',
- :delimiter => 'dl',
- :directive => 'di',
- :doc => 'do',
- :doc_string => 'ds',
- :error => 'er',
- :escape => 'e',
- :exception => 'ex',
- :float => 'fl',
- :function => 'fu',
- :global_variable => 'gv',
- :hex => 'hx',
- :include => 'ic',
- :inline => 'il',
- :instance_variable => 'iv',
- :integer => 'i',
- :interpreted => 'in',
- :label => 'la',
- :local_variable => 'lv',
- :modifier => 'mod',
- :oct => 'oc',
- :operator_name => 'on',
- :pre_constant => 'pc',
- :pre_type => 'pt',
- :predefined => 'pd',
- :preprocessor => 'pp',
- :regexp => 'rx',
- :reserved => 'r',
- :shell => 'sh',
- :string => 's',
- :symbol => 'sy',
- :tag => 'ta',
- :tag_fat => 'tf',
- :tag_special => 'ts',
- :type => 'ty',
- :variable => 'v',
- :xml_text => 'xt',
-
- :ident => :NO_HIGHLIGHT, # 'id'
- :operator => :NO_HIGHLIGHT, # 'op'
- :space => :NO_HIGHLIGHT, # 'sp'
- :plain => :NO_HIGHLIGHT,
- }
- ClassOfKind[:procedure] = ClassOfKind[:method] = ClassOfKind[:function]
- ClassOfKind[:open] = ClassOfKind[:close] = ClassOfKind[:delimiter]
- ClassOfKind[:nesting_delimiter] = ClassOfKind[:delimiter]
- ClassOfKind[:escape] = ClassOfKind[:delimiter]
- ClassOfKind.default = ClassOfKind[:error] or raise 'no class found for :error!'
-
- end
-
-end end