Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
change syntax highlighting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Beniamin Deszert authored and Beniamin Deszert committed Aug 26, 2023
1 parent 51da95e commit 4b1e979
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FROM python:${PYTHON_VERSION}-slim as build-deps
WORKDIR /app

COPY requirements.txt .
COPY syntax_highlighting.json .

RUN python -m venv .venv
ENV PATH="/app/.venv/bin:$PATH"
Expand Down
11 changes: 0 additions & 11 deletions paste_bin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ class Settings(BaseSettings):
BRANDING: BrandSettings = BrandSettings()
STORAGE: StorageSettings = StorageSettings()
CACHE: CacheSettings = CacheSettings()
SYNTAX_HIGHLIGHTING_LANGUAGES: list[str] = [
'c',
'cpp',
'python',
'rust',
'java',
'csharp',
'bash',
'json',
'csv'
]

def get_syntax_highlighting_languages(self) -> list[str]:
with open('/app/syntax_highlighting.json') as f:
Expand Down
11 changes: 11 additions & 0 deletions syntax_highlighting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
"c",
"cpp",
"python",
"rust",
"java",
"csharp",
"bash",
"json",
"csv"
]

0 comments on commit 4b1e979

Please sign in to comment.