Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I've been searching around for a similar sample to jeffas' example of Perl::Tidy code snippet. So I figured, what the hell, let's try a search on ctidy and I came up with a mishmash of pages with a vague reference to jtidy. Which, isn't quite what I was looking for, I think. :(

I'm hoping to find something that will at least do something similar to the example jeffa gave for other languages such as Visual Basic and C/C++. I see a number of web pages that correctly color code things like VB. I'm wondering if there is such a module available. At a minimum, it would be nice to feed source code into a parser and get back HTML code that can be color coordinated via css files.

I tried ctidy and vbtidy and they seem to be out. Then I tried other combinations and variations of VB, C/C++, highlighting, Perl, syntax, keyword searches as well and I generally get back foreign pages or pages to code editors.

I'd be happy with a hint for searching. :-S

Is it fair to stick a link to my site here?

Thanks for you patience.


In reply to Tidy code for other languages? by SavannahLion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-01-29 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?