logo
Home XtGem- Templates- XtScript- bottom
Display the "source code" of a LOCAL file in various ways
[...] = optional ... = your value
call source $file=...;$html_safe=...;$nl2br=...;$space2nbsp=...
$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 (&nbsp;)
Show in textarea
<!--parser:xtscript-->
print <pre>
call source $file=/FOLDER/FILE;$html_safe=1;$nl2br=0;$space2nbsp=0
print </pre>
<!--/parser:xtscript-->
Show in textarea
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">
      <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="" 
      />
    </div>
  </body>
</html>
Powered by XtGem
About us Contact Forum topÂ