source
Display the "source code" of a LOCAL file in various ways
[...] = optional ... = your value
call source $file=...;$html_safe=...;$nl2br=...;$space2nbsp=...
Notes
$file=Location of file
source uses addresses relative to the current location only not http://
$html_safe=0 Do not convert reserved characters.
The html in the file is parsed. Xt: functions "get" variables and widgets are parsed
Xtscript in the file is not parsed but xtscript "get" variables in the calling script are parsed in the source file
$html_safe=1 Convert reserved characters to their html entity equivalents.
The html in the file is shown as text
$nl2br=1 Insert a <br />before all newlines in the file
$space2nbsp=1 Convert spaces in the output to non-breaking spaces ( )
Example code
Example output
Reload<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>XtGem.com</title>
</head>
<body>
<div data-xtcontainer="container" class="xt_container">(1+1)source<xt:widget id="love_meter" max_width="220px" own_css="no" title_image="none" title_text="love meter" name_text="Name" date_text="Birthday" m_default="Boys name" f_default="Girls name" button_image="none" button_text="Calculate" score_image="none" score_text="Score" score_bar="yes" error_text="Enter your data first" /><xt:code><!--parser:xtscript-->
call source $file=/FOLDER/FILE;$html_safe=0;$nl2br=0;$space2nbsp=0
<!--/parser:xtscript--></xt:code><xt:forum /><xt:blog tzone="0" format="Y-m-d" display="1" show_time="0" entries_per_page="10" comments_per_page="20" comments_sort="-1" entries_sort="-1" display_limit="0" display_symbol="" version="1" t_back_to_posts="" t_comments="" t_comments_empty="" t_post_a_comment="" t_name="" t_comment="" t_post="" t_tags="" t_search="" t_created="" t_showing_tagged_posts="" t_no_entries_found="" t_no_search_results_found="" t_show_all_comments="" t_see_parent_thread="" t_show_all_replies="" t_show_replies="" t_reply="" t_posting_as="" t_comments_login_required="" t_login="" t_signup="" t_confirm_email="" t_report_spam="" /><xt:filelist sort_type="updated" sort_dir="asc" folder="" template="" per_page="" />
</div>
</body>
</html>