|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Detector | A Detector is an object suitable to identify a particular occurrence in source file. |
Element | Element is an abstract representation of a region in the source code. |
ElementReader | ElementReader is a class that represents the generic reader of a source region (element), that is what identifies and stores a particular region in the source code. |
FileUtils | This class collects some File facilities |
FileUtils.RegexFilenameFilter | A class that implements a regexp file filter |
Main | The application Main class. |
Source | A class that implements a BufferedReader wrapping a FileReader. |
StringUtils | This class collects some String facilities |
StringUtils.MultipleReplacer | A class that performs multiple replacement in a given String |
An utility that transforms a source code file to a xml file for highlighting purposes. This is a SBVEH (Stupid But Very Expandable Highlighter), an inefficient but very customizable structure.
Features/shortcomings:
-css
java -jar src2xml.jar [paths] [options]
Command line arguments can be:
path
Add a file/folder in the input files list;
in case of file names you can use wildcards
(glob patterns)
-r
Recursively process input subfolders
-out=path
Add a file/folder in the output files list
-cfg=config-file
Explicitly indicate a configuration file
-css=css-file
Generate (if not existing) a dummy stylesheet
file (use as a template); in case of html
output also links to this stylesheet
-ext=file-ext
Select output mode by file extension
code.html
from a cpp source:
java -jar src2xml.jar "C:\my code\code.cpp" -out=code.html
java -jar src2xml.jar code1.cpp -out=code1.html code2.cpp -out=code2.html
java -jar src2xml.jar "Snippets\" -out="Dest\" -r -ext=xml
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |