1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
Description: correct some small errors in pod, including version
number, str->file as doFile parameter, and spelling.
--- a/src/Syntax-Highlight-Engine-Simple-HTML-0.02/lib/Syntax/Highlight/Engine/Simple/HTML.pm
+++ b/src/Syntax-Highlight-Engine-Simple-HTML-0.02/lib/Syntax/Highlight/Engine/Simple/HTML.pm
@@ -52,11 +52,11 @@
=head1 VERSION
-This document describes Syntax::Highlight::Engine::Simple::HTML version 0.0.1
+This document describes Syntax::Highlight::Engine::Simple::HTML version 0.2
=head1 SYNOPSIS
-Constractor
+Constructor
use Syntax::Highlight::Engine::Simple::HTML;
@@ -77,13 +77,13 @@
tab_width => 4);
$highlighter->doFile(
- str => $str,
+ file => $name,
tab_width => 4,
encode => 'utf8');
=head1 DESCRIPTION
-This is a sub class of Syntax::Highlight::Engine::Simple.
+This is a subclass of Syntax::Highlight::Engine::Simple.
A working example of This module is at bellow.
@@ -97,7 +97,7 @@
=item type
-File type. This argument causes specific sub class to be loaded.
+File type. This argument causes specific subclass to be loaded.
=back
@@ -107,7 +107,7 @@
=item html_escape_code_ref
-HTML escape code ref. Default subroutine escapes 3 charactors '&', '<' and '>'.
+HTML escape code ref. Default subroutine escapes 3 characters '&', '<' and '>'.
=back
@@ -144,7 +144,7 @@
=item tab_width
-Tab width for tab-space conversion. -1 for disable it. -1 is the defult.
+Tab width for tab-space conversion. -1 for disable it. -1 is the default.
=back
@@ -153,7 +153,7 @@
Highlighting files.
$highlighter->doStr(
- str => $str,
+ file => $name,
tab_width => 4,
encode => 'utf8'
);
@@ -166,11 +166,11 @@
=item tab_width
-Tab width for tab-space conversion. -1 for disable it. -1 is the defult.
+Tab width for tab-space conversion. -1 to disable it. -1 is the default.
=item encode
-Set the encode of file. utf8 is the default.
+Set the encoding of file. utf8 is the default.
=back
@@ -192,7 +192,7 @@
=head2 setSyntax
-This is a method for initializing the syntax. It is called by constractor so
+This is a method for initializing the syntax. It is called by the constructor so
you may not have to call it manually.
=head1 Example
@@ -228,7 +228,7 @@
=head1 CONFIGURATION AND ENVIRONMENT
-Syntax::Highlight::Engine::Simple::HTML requires no configuration files or environment variables. Specific language syntax can be defined with sub classes and loaded in constractor if you give it the type argument.
+Syntax::Highlight::Engine::Simple::HTML requires no configuration files or environment variables. Specific language syntax can be defined with subclasses and loaded in the constructor if you give it the type argument.
=head1 DEPENDENCIES
|