You can easily add source code search to your site. Choose the format that works
best for your site, then copy the provided HTML into your web pages.
The most complete option - this search allows users to specify language and
license filters. Best option for horizontal layouts.
Width: 265
Height: 60
|
|
Preview |
HTML Source |
|
|
|
Vertical layout including the language filter. Can be used in both horizontal
and vertical layouts.
Width: 120
Height: 60
|
|
Preview |
HTML Source |
|
|
|
The simplest search option can be used in both horizontal and vertical layouts.
Width: 120
Height: 42
|
|
Preview |
HTML Source |
|
|
|
You can scope a search to a project by using the "koders_search_scope" parameter.
Any of the above search boxes can be scoped. Below is an example of a search
box scoped to the Apache 2 HTTPD project. Try it out!
|
|
Preview |
HTML Source |
|
|
|
Here's how to get the project key:
-
Go to the project page you want to scope. For example, go to
http://www.koders.com/info.aspx?c=ProjectInfo&pid=6VUZEZ9VEGD9F4VAKR2815PNQF
-
Take out the value for the "pid" parameter. In the above url, the pid value is
"6VUZEZ9VEGD9F4VAKR2815PNQF".
-
Insert the key into the "koders_search_scope" parameter of the search box.
|