code-examples

(Difference between revisions)

Jump to: navigation, search
m (The Problem)
(Real-World Examples)
Line 52: Line 52:
** Author webpage
** Author webpage
** Programming language
** Programming language
 +
 +
=== Sun Java ===
 +
[http://java.sun.com/developer/technicalArticles/javaserverpages/cachedrowset/ Java Code Samples]
 +
 +
* uses <code>&lt;pre&gt;</code> to designate the block of code
 +
* source code is by and large plain text
 +
* composed of:
 +
** source code
 +
** author's name
 +
 +
=== Java World ===
 +
[http://www.javaworld.com/javaworld/jw-01-2007/jw-0102-games.html Java World Articles]
 +
 +
* user <code>&lt;pre&gt;&lt;code&gt;</code> to designate the block of code
 +
* source code is mostly plain text
 +
* composed of:
 +
** Source code
 +
** author's name
 +
 +
=== CodeHighlighter ===
=== CodeHighlighter ===

Revision as of 06:01, 30 January 2007

Contents

Code Examples

Per the microformats process this is an examples page documenting existing real world examples of source code published on the Web. Next steps are to research code-formats and then proceed with code-brainstorming.

The Problem

Source code is published around the web in nonstandard formats, this makes actual use more difficult as it a) obscures possible licensing issues, b) doesn't encapsulate the source code in standard machine readable formats, and c) doesn't keep important meta data such as authors, language types and language version, with the source code in a machine readable fashion.

Participants

Real-World Examples

LXR

Mozilla - LXR

PHPClasses

PHPClasses - Viewing a file

Php.net

Php.net ldap functions

Bigbold snippets

A Python decorator

Sun Java

Java Code Samples

Java World

Java World Articles


CodeHighlighter

CodeHightlighter A syntax highlighter written in Javascript (can be used e.g. for code snippets in blogarticles). Examples for markup (for CSS, HTML, Ruby code)

ASPN

Python Cookbook

Existing Practices

Common Patterns

Existing Solutions

Proposal

See Also

code-examples was last modified: Wednesday, December 31st, 1969

Views