Open clragon opened 10 months ago
the pastebin plugin right now uses an extremely crude method for language detection: all text is dart. all pastes are therefore with dart highlights.
it would be nicer if we would actually try some detection. we could use mime types.
however, we should still treat txt as dart, as some people will inevitably upload raw text files with dart code in them.
txt
the pastebin plugin right now uses an extremely crude method for language detection: all text is dart. all pastes are therefore with dart highlights.
it would be nicer if we would actually try some detection. we could use mime types.
however, we should still treat
txt
as dart, as some people will inevitably upload raw text files with dart code in them.