Linux 软件免费装
Banner图

Plugin Name

开发者 BenjaminSommer
更新时间 2012年9月30日 16:49
捐献地址: 去捐款
PHP版本: 2.8 及以上
WordPress版本: 3.5

标签

snippets algorithm source code literate programming fragments source code publishing prototypes pseudocode

下载

1.0 1.1 1.3

详情介绍:

This plugin brings literate programming to WordPress. Use it to clearly and explicitly state the thoughts behind your published programs, key algorithms and complex code snippets. Authors can better restart their own thought processes at any later time, and other programmers can understand the construction of the program more easily. Readers of your posts don't have to decipher the thought process behind the program from the code and its associated comments. Source code can be gradually implemented and explained, without the need to repeatedly refer to one complete source code. Features: Future Work: Introductions, tutorials, posts about this plugin and literate programming in general can be found on my personal weblog.

安装:

Use WordPress integrated installation. No additional dependencies required.

升级注意事项:

No upgrade notices available - it should work just fine.

常见问题:

How to define a fragment?

Use WP shortcodes for that: [fragment name="unique fragment name" /]. In normal cases, this should be placed within a parent fragment: [fragment name="implemented parent fragment name"] ... [fragment name="define new fragment" /] ... [/fragment]

How do I add implementations to fragments?

Just the the shortcode [fragment name="define new fragment"] //add implementation here [/fragment] You can add implementations step by step by repeatedly using this fragment with the same name. The plugin does the rest.

Can I reference fragment names just within my text?

Yes. Just type [fragment name="your_fragment_name"/] into your WordPress editor.

Do I really need fragment_def?

Well, yes and no. Officially, nested shortcodes having the same name is not recommended/supported according to WordPress.org. But you use fragment instead of fragment_def - it worked on my system.

更新日志:

1.3 1.2 1.1 1.0