It would be a pretty trivial exercise to accomplish this. Just create a module that adds a "View source" tab to the node. Then for that tabs content simply render the output of node_view($node) into a textarea.<div>
Boom! Quick and easy "view node source".<br clear="all">-----<br>Adam A. Gregory<br>Drupal Developer & Consultant<br>Web: AdamAGregory.com<br>Twitter: <a href="http://twitter.com/adamgregory" target="_blank">twitter.com/adamgregory</a><br>
skype: aagregory2<br>Phone: 910.808.1717<br>Cell: 919.306.6138<br>
<br><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 12:33 AM, Michael Favia <span dir="ltr"><<a href="mailto:michael@favias.org">michael@favias.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Oct 25, 2010 at 10:59 PM, Jin Guang Zheng <<a href="mailto:zhengj3@rpi.edu">zhengj3@rpi.edu</a>> wrote:<br>
<br>
> I am wondering if anyone knows whether there is a module that provides<br>
> viewing source code of nodes in Drupal as Wikipedia's view source.<br>
<br>
</div>The source of a drupal node is derived from the "body" of the node,<br>
its associated "field output" and any other modules that care to hook<br>
into the rendering of the node upon display. As such there isn't<br>
really a "view source" as the process for rendering each node content<br>
type is unique and determined by the developer who implemented the<br>
node type. This is also what makes drupal a powerful multipurpose tool<br>
(i.e. not just encyclopedia articles). Your best bet is to research<br>
drupal theming and fields. The $node->content variable might be of<br>
assistance on D6 and $content on D7. Good luck. -mf<br>
</blockquote></div><br></div>