memo.xight.org

日々のメモ

GeSHiの利用

<?php
	include_once('geshi.php');
	$source         = $_REQUEST["source"];
	$language       = $_REQUEST["lang"];
	$geshi =& new GeSHi($source, $language);
	echo $geshi->parse_code();
	return;
?>

Google Homepage API

Summary

Google Homepage のモジュール (Widget)を定義できるAPIが公開.
クリックして拡大

bulkfeeds.net のサーチボックスの場合

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs
  title="Bulkfeeds Search"
  directory_title="Bulkfeeds Search"
  title_url="http://bulkfeeds.net/"
  description="Search on Bulkfeeds"
  author="Tatsuhiko Miyagawa"
  author_email="miyagawa@gmail.com"
  author_location="Tokyo, Japan"
  render_inline="optional"
  height="60"
  scrolling="true"
/>
<Content type="html">
<![CDATA[
<p>
<form action="http://bulkfeeds.net/app/search2" target="_top">
<input type="text" name="q" value="" />
<input type="submit" value="Search" />
</form>
</p>
]]>
</Content>
</Module>

Reference

Updates from code.google.com: Google Releases Homepage API
http://google-code-updates.blogspot.com/2005/12/google-releases-homepage-api.html
Google Homepage API - Overview
http://www.google.com/apis/homepage/
Google グループ : Google Homepage API
http://groups.google.com/group/Google-Homepage-API
blog.bulknews.net - Bulkfeeds Search module for Google HomePage
http://blog.bulknews.net/mt/archives/001867.html