Feature request: Shebang interpretation
- Lenguaje dominante
- Python
- Estrellas
- 46.6k
- Forks
- 1.9k
- Merge medio
- 10 d 16 h
- PR fusionados (30 d)
- 5
Descripción
**is your feature request related to a problem? Please describe.**
In the browser-based doc viewer, copyparty seems to only use syntax highlighting on files with extensions applied to them; files without extensions on them do not render with any syntax highlighting, regardless if there's a shebang that implies it gets executed with a certain script.
**Describe the idea / solution you'd like**
A file (lets say its named simply `main`) like this;
```py
#!/usr/bin/env python3
for i in range(1, 100):
print(i)
print(":D")
```
...would render with pretty colors instead of white text.
**Additional context**
I am currently running copyparty v1.19.6 within Docker on a Debian computer.
For clarity, here is a screenshot of how the page currently renders.
I'm not totally sure how reasonable this is; I know media files are scanned automatically to propagate their tags within the file browser, and deduplication involves hashing the file serverside, but this may require more involvement (i didn't have a lot of time this afternoon and wasn't able to identify in the source where these things happen). It's obviously very very low priority, but something I noticed that would be a fun addition, so I leave it up to you. :)
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.