Title: GetGit
Author: claycarpenter
Published: <strong>2013년 3월 11일</strong>
Last modified: 2013년 3월 19일

---

플러그인 검색

![](https://ps.w.org/getgit/assets/banner-772x250.jpg?rev=683866)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/getgit_fffffe.svg)

# GetGit

 작성자: [claycarpenter](https://profiles.wordpress.org/claycarpenter/)

[다운로드](https://downloads.wordpress.org/plugin/getgit.0.3.zip)

 * [세부사항](https://ko.wordpress.org/plugins/getgit/#description)
 * [평가](https://ko.wordpress.org/plugins/getgit/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/getgit/#installation)
 * [개발](https://ko.wordpress.org/plugins/getgit/#developers)

 [지원](https://wordpress.org/support/plugin/getgit/)

## 설명

This plugin embeds the content of a public GitHub repository into your WordPress
posts. It’s capable of retrieving either the full content or a snippet of a file.
The code will be displayed with syntax highlighting and line numbers.

Now supports content caching for improved page responsiveness and load times.

Syntax highlighting is provided by the [Sunlight JS](http://sunlightjs.com/) syntax
highlighter. Many thanks to those involved in that project!

#### Usage

This plugin registers a shortcode that allows for embedding GitHub repo content 
into blog posts. To embed content into your post, use the `github` shortcode like
so:

    ```
    [github userid="[target user id]" repoid="[target repo id]" path="[path to content]" language="[language of target content]"]
    ```

Attributes used by the `github` shortcode:

 * userid – The user ID of the repository owner.
 * repoid – The ID of the repository that contains the target content.
 * path – The full path to the content. This path should start at the repository
   root, not inclusive of the leading `/`, and terminate with the name of the target
   content’s filename.
 * language – The programming language of the code contained in the content. This
   information will be passed to the syntax highlighter. The value must match one
   of the recognized values for the Sunlight JS engine. For a list of values, see
   the [Sunlight documentation](http://sunlightjs.com/docs.html).
 * startloc – Optional. The starting line of code to display in the code snippet.
   If this attribute is ommitted, the first line of retrieved file will be the first
   line of code displayed in the snippet.
 * stoploc – Optional. The final line of code (inclusive) to display in the code
   snippet. If this attribute is ommitted, the final line of content shown in the
   snippet will be the last line of the retrieved file.

#### Examples

Retrieve `src/support.js` from the jQuery project repo:
 [getgit repoid=”jquery”
userid=”jquery” path=”src/support.js” language=”javascript”]

Retrieve lines 39 through 64 of this plugin’s content retrieval class:
 [getgit 
repoid=github-wordpress-plugin userid=claycarpenter path=”src/php/github_repo_content_retriever.
php” language=”php” startloc=39 stoploc=64]

## 스크린샷

 * [[
 * A snippet of content retrieval code from this plugin, with PHP syntax highlighting.
 * [[
 * A snippet of a jQuery file, with JavaScript syntax highlighting.
 * [[
 * The plugin settings page.

## 설치

To install this plugin:

 1. Upload the plugin archive ZIP (`getgit.zip`) to the `/wp-content/plugins/` directory.
 2. Activate the GetGit plugin through the ‘Plugins’ menu in WordPress.
 3. Add the github shortcode to your blog posts, as outlined in the Description section.

## FAQ

  Does this plugin support configurable syntax highlighting?

Currently, the syntax highlighting style choice is not user configurable. However,
such functionality is expected in future releases.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“GetGit”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

 *   [ claycarpenter ](https://profiles.wordpress.org/claycarpenter/)

[자국어로 “GetGit”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/getgit)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/getgit/)는, [SVN 저장소](https://plugins.svn.wordpress.org/getgit/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/getgit/)을 [RSS](https://plugins.trac.wordpress.org/log/getgit/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 0.3

 * Adds configurability to the caching support. The content cache system can now
   be enabled or disabled. Content in the cache can now have a configurable expiry.
 * Updates cache (Transient) key generation so that the generated keys are more 
   likely to be unique across plugins.

#### 0.2

 * Adds support for content caching. The caching support is provided via the Transients
   API. This is an initial implementation and does not allow for configuration of
   the cache entry expiration date.

#### 0.1

 * Initial public release.
 * Supports basic syntax highlighting, line numbers.
 * Supports showing only snippets of files, rather than the full file content.
 * Uses Sunlight JS syntax highlighter, [v1.17](http://svn.tommymontgomery.com/sunlight/tags/1.17/CHANGELOG).

## 기초

 *  버전 **0.3**
 *  최근 업데이트: **13년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 3.5.1 또는 그 이상 **
 *  다음까지 시험됨: **3.5.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/getgit/)
 * 태그:
 * [code](https://ko.wordpress.org/plugins/tags/code/)[embed](https://ko.wordpress.org/plugins/tags/embed/)
   [Github](https://ko.wordpress.org/plugins/tags/github/)[repositories](https://ko.wordpress.org/plugins/tags/repositories/)
   [snippet](https://ko.wordpress.org/plugins/tags/snippet/)
 *  [고급 보기](https://ko.wordpress.org/plugins/getgit/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/getgit/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/getgit/reviews/)

## 기여자

 *   [ claycarpenter ](https://profiles.wordpress.org/claycarpenter/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/getgit/)