# GeSHi language file for nginx config

**URL:** <https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809>\
**Category:** NGINX\
**Created:** [August 24, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809 "2010-08-24T19:12:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianmercer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Post date:** [August 24, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809/1 "2010-08-24T19:12:05Z")

</div>

Does anyone have a language file for nginx configurations for the GeSHI  
syntax highlighter? Or have you used other syntax highlighter  
definitions that I could use to make one? I’ve found one for vim so far  
on the web.

Posted at Nginx Forum:

> **[GeSHi language file for nginx config](https://forum.nginx.org/read.php?2,123194,123194#msg-123194)**
>
> Does anyone have a language file for nginx configurations for the GeSHI syntax highlighter? Or have you used other syntax highlighter definitions that I could use to make one? I've found one for vim so far on the web.

---

<div class="post-metadata">

**Author:** ![brianmercer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Post date:** [August 24, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809/2 "2010-08-24T19:24:58Z")

</div>

Attached.

You need to add a line to get\_language\_name\_from\_extension() in  
extensions/geshi/geshi/geshi.php like this:

‘nginx’ =\> array()

and save the attached file to extensions/geshi/geshi/geshi/nginx.php.

Regards,  
Cliff

---

<div class="post-metadata">

**Author:** ![brianmercer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Post date:** [August 24, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809/3 "2010-08-24T19:53:38Z")

</div>

Thanks much.

## Cliff W. Wrote:

> found one for vim so far
> 
> > [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)
> 
> –
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,123194,123210#msg-123210](http://forum.nginx.org/read.php?2,123194,123210#msg-123210)

---

<div class="post-metadata">

**Author:** ![brianmercer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Post date:** [August 17, 2012, 1:19am UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809/4 "2012-08-17T01:19:16Z")

</div>

Hi,

One of the devs for ‘GeSHi - Generic Syntax Highlighter’ replied back  
and  
offered to include the nginx language file in the official distribution  
if  
someone is willing to cleanup some of the issues preventing the file  
from  
passing the language tests:

[http://sourceforge.net/tracker/?func=detail&atid=670234&aid=3554024&group\_id=114997](http://sourceforge.net/tracker/?func=detail&atid=670234&aid=3554024&group_id=114997)

I don’t feel I have the necessary skills to do so, but I plan on giving  
it a  
shot when I get a chance.

Posted at Nginx Forum:

> **[Re: GeSHi language file for nginx config](https://forum.nginx.org/read.php?2,123194,229812#msg-229812)**
>
> Does anyone have a language file for nginx configurations for the GeSHI syntax highlighter? Or have you used other syntax highlighter definitions that I could use to make one? I've found one for vim so far on the web.

---

<div class="post-metadata">

**Author:** ![brianmercer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Post date:** [August 3, 2012, 4:12pm UTC](https://www.ruby-forum.com/t/geshi-language-file-for-nginx-config/193809/5 "2012-08-03T16:12:14Z")

</div>

Hi Cliff,

Do you have a recent copy of the nginx.php GeSHi language file? I opened  
a request at the SourceForge project tracker here (  
[https://sourceforge.net/tracker/?func=detail&aid=3554024&group\_id=114997&atid=670234](https://sourceforge.net/tracker/?func=detail&aid=3554024&group_id=114997&atid=670234)  
) to have the copy you’ve already provided added, but if there is a  
newer file I’d like to provide it to them.

Do you happen to have it in a repo somewhere? I looked through the nginx  
SVN repo and didn’t see it there.

Thanks.

Posted at Nginx Forum:

> **[Re: GeSHi language file for nginx config](https://forum.nginx.org/read.php?2,123194,229285#msg-229285)**
>
> Does anyone have a language file for nginx configurations for the GeSHI syntax highlighter? Or have you used other syntax highlighter definitions that I could use to make one? I've found one for vim so far on the web.
