Description
What to do?
Use a list of paths and produces a pic representing a hierarchy of paths (which can be a PNG image or tree text) of a File Manager Windows or Linux.
Why use it?
You can save time because you avoid that you have to capture the image of the paths in your File Manager, save it, upload it and set it in WordPress.
You will have available in your articles your paths in text format.
If you have installed Windows and you need to show your style paths with Linux File Manager you can do with this plugin. The same case but Linux to Windows is also considered.
How to use it?
You just need to write the paths you want to generate using the directory separators File System correct, ie if you go to enter paths in the form of Linux, you will have to use as the directory separator / (Forwardslash) or if you’re using Windows format you should use the \ (backslash).
You will have to configure the visual characteristics of the pic choosing the graphical mode or text and style is available for each mode.
In the shortcode’s final indicator making sure that I not contain any spaces before ]
Correct :
[/pathpic]
Incorrect
[/pathpic ] (see the space between pathpic and ])
Where to use?
Once installed on wordpress plugin, you could use in your articles.
Parameters:
-
style
Select which style will have the pic generated from the list of paths used. These are the available values:MODE–>VALUE———>DESCRIPTION
image->W7————>Windows 7
image->XP————>Windows XP
image->Ubuntu——–>Ubuntu
image->Netbeans——>Netbeans 7
text–>TotalTerminal->Mac
text–>Guake———>Ubuntu o Gnome
text–>Yaquake——->Ubuntu o GnomeExample: style = “TotalTerminal”
-
mode
Indicates the visual format of the pic. The available values are: image and text. Example: mode = “text” -
os
Indicates the format of the paths according to the operating system. The available values are: Linux and Windows. -
files
It is a sequence of numbers separated by commas referring to the number of row in the list of paths and will be shown as the output file. Note that the row numbers start at 0 (zero). Example: files = “0,1,2” -
highlights
It is a sequence of numbers separated by commas referred to the row number list paths and Seru shown highlighted in the output. Note that the row numbers start at 0 (zero). Example: highlights = “2”
Requeriments
- In php set buffer_output directive to ‘On’.
- Library GD2 installed.
- Allowing to use of base64 encoding.
Screenshots
Installation
Uploading The Plugin
The quickest method for installing the importer is:
- Visit Tools -> Import in the WordPress dashboard
- Click on the WordPress link in the list of importers
- Click “Install Now”
- Finally click “Activate Plugin & Run Importer”
Extract all files from the ZIP file, making sure to keep the file/folder structure intact, and then upload it to
/wp-content/plugins/.
See Also: “Installing Plugins” article on the WP Codex
Plugin Activation
Go to the admin area of your WordPress install and click on the “Plugins” menu.
Click on “Activate” for the “Pathpic” plugin.
Plugin Usage
Just wrap your path(s) in [pathpic]
, such as
[pathpic params]
path(s) here
[/pathpic]
Sample 1 (os=”Linux”)
[pathpic style=”Ubuntu” mode=”image” os=”Linux” files=”2,6″ highlights=”2″]
myProject/source/com
myProject/source/wickedlysmart
myProject/source/wickedlysmart/MyClass.java
myProject/classes
myProject/classes/com
myProject/classes/wickedlysmart
myProject/classes/wickedlysmart/MyClass.class
[/pathpic]
Sample 2 (os=”Windows”)
[pathpic style=”TotalTerminal” mode=”text” os=”Windows” files=”0,1,2″ highlights=”2″]
trunk\wp-admin\user\admin.php
trunk\wp-admin\user\index-extra.php
trunk\wp-feed.php
[/pathpic]
FAQ
I write the paths, but it only shows one path directory?
Review that the directory separator corresponds with the ‘os’ parameter, backslash for Windows and forwardslash
for Linux.
Contributors & Developers
“Pathpic” is open source software. The following people have contributed to this plugin.
Translate “Pathpic” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.8.1
- First release.