diff options
author | Andrey Andreev <narf@devilix.net> | 2018-06-12 15:45:46 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2018-06-12 15:45:46 +0200 |
commit | 30e2eafa86c4c7b6b39cea3e7089a90df9f603fb (patch) | |
tree | 391bc1e62d8d0ad045e18a6da72e3e2a59e91503 /user_guide_src/cilexer | |
parent | a9da3dd2f16a8f97d7bc4ff5572b28e4bb84c813 (diff) |
[ci skip] 3.1.9 release
Diffstat (limited to 'user_guide_src/cilexer')
-rw-r--r-- | user_guide_src/cilexer/README | 22 | ||||
-rw-r--r-- | user_guide_src/cilexer/cilexer/__init__.py | 1 | ||||
-rw-r--r-- | user_guide_src/cilexer/cilexer/cilexer.py | 56 | ||||
-rw-r--r-- | user_guide_src/cilexer/setup.py | 23 |
4 files changed, 0 insertions, 102 deletions
diff --git a/user_guide_src/cilexer/README b/user_guide_src/cilexer/README deleted file mode 100644 index b9d9baf09..000000000 --- a/user_guide_src/cilexer/README +++ /dev/null @@ -1,22 +0,0 @@ -To install the CodeIgniter Lexer to Pygments, run: - - sudo python setup.py install - -Confirm with - - pygmentize -L - - -You should see in the lexer output: - -* ci, codeigniter: - CodeIgniter (filenames *.html, *.css, *.php, *.xml, *.static) - -You will need to run setup.py and install the cilexer package anytime after cilexer/cilexer.py is updated - -NOTE: Depending on how you installed Sphinx and Pygments, -you may be installing to the wrong version. -If you need to install to a different version of python -specify its path when using setup.py, e.g.: - - sudo /usr/bin/python2.5 setup.py install
\ No newline at end of file diff --git a/user_guide_src/cilexer/cilexer/__init__.py b/user_guide_src/cilexer/cilexer/__init__.py deleted file mode 100644 index 8b1378917..000000000 --- a/user_guide_src/cilexer/cilexer/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/user_guide_src/cilexer/cilexer/cilexer.py b/user_guide_src/cilexer/cilexer/cilexer.py deleted file mode 100644 index 4ecfd0bc4..000000000 --- a/user_guide_src/cilexer/cilexer/cilexer.py +++ /dev/null @@ -1,56 +0,0 @@ -# CodeIgniter -# https://codeigniter.com -# -# An open source application development framework for PHP -# -# This content is released under the MIT License (MIT) -# -# Copyright (c) 2014 - 2017, British Columbia Institute of Technology -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -# Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) -# Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/) -# -# http://opensource.org/licenses/MIT MIT License - -import re -import copy - -from pygments.lexer import DelegatingLexer -from pygments.lexers.web import PhpLexer, HtmlLexer - -__all__ = ['CodeIgniterLexer'] - - -class CodeIgniterLexer(DelegatingLexer): - """ - Handles HTML, PHP, JavaScript, and CSS is highlighted - PHP is highlighted with the "startline" option - """ - - name = 'CodeIgniter' - aliases = ['ci', 'codeigniter'] - filenames = ['*.html', '*.css', '*.php', '*.xml', '*.static'] - mimetypes = ['text/html', 'application/xhtml+xml'] - - def __init__(self, **options): - super(CodeIgniterLexer, self).__init__(HtmlLexer, - PhpLexer, - startinline=True) diff --git a/user_guide_src/cilexer/setup.py b/user_guide_src/cilexer/setup.py deleted file mode 100644 index db4bbea43..000000000 --- a/user_guide_src/cilexer/setup.py +++ /dev/null @@ -1,23 +0,0 @@ -""" -Install and setup CodeIgniter highlighting for Pygments. -""" - -from setuptools import setup - -entry_points = """ -[pygments.lexers] -cilexer = cilexer.cilexer:CodeIgniterLexer -""" - -setup( - name='pycilexer', - version='0.1', - description=__doc__, - author="EllisLab, Inc.", - packages=['cilexer'], - install_requires=( - 'sphinx >= 1.0.7', - 'sphinxcontrib-phpdomain >= 0.1.3-1' - ), - entry_points=entry_points -) |