-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# hilite.me API documentation | ||
|
||
POST to http://www.hilite.me/api with these parameters: | ||
|
||
* code: source code to format | ||
* lexer: [lexer](http://pygments.org/docs/lexers/) to use, default it 'python' | ||
* style: [style](http://pygments.org/docs/styles/) to use, default is 'colorful' | ||
* linenos: if not empty, the HTML will include line numbers | ||
* divstyles: CSS style to use in the wrapping <div> element, can be empty | ||
|
||
The POST will return the HTML code in UTF-8 encoding. | ||
|
||
Feel free to use the API as you see fit, but please let me know if you expect to have a lot of requests, I will need to bump the App Engine quotas. |