openHPI / codeocean

CodeOcean is an automated assessment tool for web-based coding exercises
BSD 3-Clause "New" or "Revised" License
64 stars 27 forks source link

Exercise Edit: Enable syntax highlight for new files #2529

Closed MrSerth closed 2 weeks ago

MrSerth commented 4 weeks ago

Previously, any new file added to an exercises didn't feature syntax highlighting (it was only enabled for those files retrieved from the database). With this PR, we enable syntax highlighting for new exercise files, too. It doesn't matter whether only the exercise file is new or whether the whole exercise is new.