该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Image

Program Output

描述

This Plugin is useful for developers blog, tutorial site where to display formatted output of any program, like C, C++, JAVA, VB, C#, JSP, ASP, PHP, HTML etc.
The output is purely created using CSS so it is responsive, and display perfectly on any browser.
It use shortcode to display output. Just add [output] Hello World! [/output] to your Post or Page.

屏幕截图

  • Image
    This is Console (CMD) Output. Useful for Command Line Output such as C, C++, JAVA etc.
  • Image
    This is Browser Output. Useful for Web Languages such as ASP, PHP, JSP, HTML, JS, CSS etc.

安装

This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Plugin Name screen to configure the plugin
  4. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)

常见问题

How to use Shortcodes?

Just add [output] Text to Display [/output] to your Post or Page.

How to use Shortcodes with Parameters?

This plug-in accepts three parameters with Shortcodes. 1) type 2) title 3) header all three are optional.

How to use “type” Parameters with Shortcodes?

Just add type with value in starting shortcode. For Example [output type=”browser”] Here browser is value of type.
Currently this plug-in supports two values of type, 1) cmd 2) browser.
If you not provide any type it will use cmd as by default type.

How to use “title” Parameters with Shortcodes?

Just add title with value in starting shortcode. For Example [output type=”browser” title=”Any thing you display in Title bar”].
The value of title is display on Title Bar of browser output. The title is only work with type=”browser”
If title is not specified in Shortcode, This Plug-in display New Tab on Title Bar of browser output by default.
The cmd is not support title parameter, as it only display Command Prompt on cmd Title Bar.

How to use “header” Parameters with Shortcodes?

This Plug-in is display Output: before it prints actual output.
If you have to change text of Output:, Just add header with value in starting shortcode.
For Example [output header=”Result:]”. It will display Result: before prints actual output.
If don’t want to display any header, Just add header with blank value in starting shortcode.
For Example [output header=””]. It will not display any header before prints actual output.

评价

此插件暂无评价。

贡献者及开发者

「Program Output」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Program Output」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • Created A New Plugin.
  • No change.