{
  "title": "About Code Plugin",
  "story": [
    {
      "type": "paragraph",
      "id": "67037b432c4c1ca9",
      "text": "This plugin formats and colors computer source code. "
    },
    {
      "type": "paragraph",
      "id": "c647c377034dce23",
      "text": "For example, many data handling plugins use <b>value()</b> to extract a numerical value from a string or object."
    },
    {
      "type": "code",
      "id": "dd3d3db4d5e96804",
      "text": "value = (obj) ->\n  return NaN unless obj?\n  switch obj.constructor\n    when Number then obj\n    when String then +obj\n    when Array then value(obj[0])\n    when Object then value(obj.value)\n    when Function then obj()\n    else NaN"
    },
    {
      "type": "paragraph",
      "id": "7b2c4920a95d0a13",
      "text": "Choose <b>code</b> in the Factory plugin menu to create a code item. See [[About Factory Plugin]]."
    },
    {
      "type": "paragraph",
      "id": "bdd8146ac72f11f5",
      "text": "See [https://github.com/WardCunningham/Smallest-Federated-Wiki/tree/master/client/plugins/code GitHub] for plugin source."
    },
    {
      "type": "paragraph",
      "id": "a96240e63cfab7cb",
      "text": "Formatting is by prettify.js available from [http://code.google.com/p/google-code-prettify/ Google Code]."
    }
  ],
  "journal": [
    {
      "type": "create",
      "item": {
        "title": "About Code Plugin"
      },
      "date": 1351656457655
    },
    {
      "item": {
        "type": "factory",
        "id": "67037b432c4c1ca9"
      },
      "id": "67037b432c4c1ca9",
      "type": "add",
      "date": 1351656501519
    },
    {
      "type": "edit",
      "id": "67037b432c4c1ca9",
      "item": {
        "type": "paragraph",
        "id": "67037b432c4c1ca9",
        "text": "This plugin formats and colors computer source code. "
      },
      "date": 1351656701849
    },
    {
      "item": {
        "type": "factory",
        "id": "dd3d3db4d5e96804"
      },
      "id": "dd3d3db4d5e96804",
      "type": "add",
      "after": "67037b432c4c1ca9",
      "date": 1351656859606
    },
    {
      "type": "edit",
      "id": "dd3d3db4d5e96804",
      "item": {
        "type": "code",
        "id": "dd3d3db4d5e96804",
        "text": "value = (obj) ->\n  return NaN unless obj?\n  switch obj.constructor\n    when Number then obj\n    when String then +obj\n    when Array then value(obj[0])\n    when Object then value(obj.value)\n    when Function then obj()\n    else NaN"
      },
      "date": 1351656863757
    },
    {
      "item": {
        "type": "paragraph",
        "id": "c647c377034dce23",
        "text": ""
      },
      "id": "c647c377034dce23",
      "type": "add",
      "after": "67037b432c4c1ca9",
      "date": 1351656922897
    },
    {
      "type": "edit",
      "id": "c647c377034dce23",
      "item": {
        "type": "paragraph",
        "id": "c647c377034dce23",
        "text": "For example, many data handling plugins use value() to extract a numerical value from a string or object."
      },
      "date": 1351657014321
    },
    {
      "type": "edit",
      "id": "c647c377034dce23",
      "item": {
        "type": "paragraph",
        "id": "c647c377034dce23",
        "text": "For example, many data handling plugins use <b>value()</b> to extract a numerical value from a string or object."
      },
      "date": 1351657029726
    },
    {
      "item": {
        "type": "factory",
        "id": "a96240e63cfab7cb"
      },
      "id": "a96240e63cfab7cb",
      "type": "add",
      "after": "dd3d3db4d5e96804",
      "date": 1351657090260
    },
    {
      "type": "edit",
      "id": "a96240e63cfab7cb",
      "item": {
        "type": "paragraph",
        "id": "a96240e63cfab7cb",
        "text": "Formatting is by prettify.js [http://code.google.com/p/google-code-prettify/ google code]."
      },
      "date": 1351657184473
    },
    {
      "type": "edit",
      "id": "a96240e63cfab7cb",
      "item": {
        "type": "paragraph",
        "id": "a96240e63cfab7cb",
        "text": "Formatting is by prettify.js available from [http://code.google.com/p/google-code-prettify/ google code]."
      },
      "date": 1351657215792
    },
    {
      "item": {
        "type": "factory",
        "id": "bdd8146ac72f11f5"
      },
      "id": "bdd8146ac72f11f5",
      "type": "add",
      "after": "a96240e63cfab7cb",
      "date": 1351657272946
    },
    {
      "type": "edit",
      "id": "bdd8146ac72f11f5",
      "item": {
        "type": "paragraph",
        "id": "bdd8146ac72f11f5",
        "text": "See [https://github.com/WardCunningham/Smallest-Federated-Wiki/tree/master/client/plugins/code GitHub] for plugin source."
      },
      "date": 1351657287576
    },
    {
      "item": {
        "type": "factory",
        "id": "7b2c4920a95d0a13"
      },
      "id": "7b2c4920a95d0a13",
      "type": "add",
      "after": "bdd8146ac72f11f5",
      "date": 1351657321863
    },
    {
      "type": "edit",
      "id": "7b2c4920a95d0a13",
      "item": {
        "type": "paragraph",
        "id": "7b2c4920a95d0a13",
        "text": "Choose <b>code</b> in the Factory plugin menu. See [[About Factory Plugin]]."
      },
      "date": 1351657356446
    },
    {
      "type": "edit",
      "id": "7b2c4920a95d0a13",
      "item": {
        "type": "paragraph",
        "id": "7b2c4920a95d0a13",
        "text": "Choose <b>code</b> in the Factory plugin menu to create a code item."
      },
      "date": 1351657379775
    },
    {
      "item": {
        "type": "paragraph",
        "id": "c4e1791bae916a7c",
        "text": ". See [[About Factory Plugin]]."
      },
      "id": "c4e1791bae916a7c",
      "type": "add",
      "after": "7b2c4920a95d0a13",
      "date": 1351657380283
    },
    {
      "type": "remove",
      "id": "c4e1791bae916a7c",
      "date": 1351657386397
    },
    {
      "type": "edit",
      "id": "7b2c4920a95d0a13",
      "item": {
        "type": "paragraph",
        "id": "7b2c4920a95d0a13",
        "text": "Choose <b>code</b> in the Factory plugin menu to create a code item. Delete all code text to delete the item. See [[About Factory Plugin]]."
      },
      "date": 1351657402732
    },
    {
      "type": "edit",
      "id": "7b2c4920a95d0a13",
      "item": {
        "type": "paragraph",
        "id": "7b2c4920a95d0a13",
        "text": "Choose <b>code</b> in the Factory plugin menu to create a code item. See [[About Factory Plugin]]."
      },
      "date": 1351657418702
    },
    {
      "item": {
        "type": "paragraph",
        "id": "8956fd98bb26681e",
        "text": ""
      },
      "id": "8956fd98bb26681e",
      "type": "add",
      "after": "7b2c4920a95d0a13",
      "date": 1351657419206
    },
    {
      "type": "edit",
      "id": "8956fd98bb26681e",
      "item": {
        "type": "paragraph",
        "id": "8956fd98bb26681e",
        "text": "Delete all code text to delete the item. "
      },
      "date": 1351657420843
    },
    {
      "type": "move",
      "order": [
        "67037b432c4c1ca9",
        "c647c377034dce23",
        "dd3d3db4d5e96804",
        "a96240e63cfab7cb",
        "7b2c4920a95d0a13",
        "8956fd98bb26681e",
        "bdd8146ac72f11f5"
      ],
      "id": "bdd8146ac72f11f5",
      "date": 1351657427042
    },
    {
      "type": "move",
      "order": [
        "67037b432c4c1ca9",
        "c647c377034dce23",
        "dd3d3db4d5e96804",
        "7b2c4920a95d0a13",
        "8956fd98bb26681e",
        "bdd8146ac72f11f5",
        "a96240e63cfab7cb"
      ],
      "id": "a96240e63cfab7cb",
      "date": 1351657430452
    },
    {
      "type": "remove",
      "id": "8956fd98bb26681e",
      "date": 1351657489184
    },
    {
      "type": "edit",
      "id": "a96240e63cfab7cb",
      "item": {
        "type": "paragraph",
        "id": "a96240e63cfab7cb",
        "text": "Formatting is by prettify.js available from [http://code.google.com/p/google-code-prettify/ Google Code]."
      },
      "date": 1351657553977
    }
  ]
}