Warning: file_get_contents(/home/fann/kksou.com/php-gtk2/products/include_code_listing/samples/sample4.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/fann/kksou.com/php-gtk2/mambots/content/include_code_listing.php on line 161
Include Code Listing plugin - More Tips and Techniques |
| Written by kksou | |||||||||||||||
| Friday, 02 May 2008 | |||||||||||||||
|
In this article, I will show you more tips and techniques in using the Include Code Listing plugin.
<style type="text/css">
<!--
.IncludeCodeListing_linenum {
font-family: Times New Roman Bold Italic;
font-size: 16px;
color: #0000ff;
}
-->
</style>
To use the above style, you have to use the setting use_css=1. Don't forget to enclose this in square brackets.
{include_code_listing sample1.1.php [use_css=1]}
You will get this:
<style type="text/css">
<!--
.IncludeCodeListing_linenum {
font-family: "Courier New", Courier, monospace;
font-size: 9px;
font-style: italic;
color: #FF3399;
}
td.IncludeCodeListing_linenum_td {
background-color: #99E9FF;
}
-->
</style>
To use the above style, you have to use the setting use_css=1. Don't forget to enclose this in square brackets.
{include_code_listing sample1.1.php [use_css=1]}
You will get this:
<style type="text/css">
<!--
code {
font-family: "Times New Roman", Times, serif;
font-size: 16px;
font-style: italic;
color: #FF3399;
}
-->
</style>
Note that for this to work, you do not need the setting use_css=1. (Unless, of course, if you intend to specify the font of the line number, you will then need to use the setting use_css=1 as outlined in (1) above.)
{include_code_listing sample1.1.php}
You will get this:
{include_code_listing c:\sample apps\php\sample1.1.php [show_linenum=0]}
Compare this with indent=2 (the default)
{include_code_listing c:\sample apps\php\sample3.php [wrap_column=40, multiline_indent=2]}
and this with indent=0
{include_code_listing c:\sample apps\php\sample3.php [wrap_column=40, multiline_indent=0]}
{include_code_listing c:\sample apps\php\sample4.php [wrap_column=40, force_wrap=1]}
The
{include_code_listing c:\sample apps\php\sample4.php [wrap_column=40, force_wrap=0]}
I will not show it here as it would mess up the layout of this page. User reviews Average user ratings: 5.0 (from 1 user) Note: You have to be a registered member to leave a comment. Free registration here. |
|||||||||||||||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin








October 28, 2008 11:31am
See on Forum (PHP-GTK2 : Cookbook Forum : Joomla! : Other Plugins) for another Tips ;)