facundobatista / kilink

A next generation pastebin
GNU General Public License v3.0
25 stars 29 forks source link

Use current highlighter for a new document version. #117

Closed StyXman closed 7 years ago

StyXman commented 7 years ago

Every time a document is modified and saved, the text type combo stays at 'auto' and reverts to plain text when the new document is loaded.

Steps to reproduce:

matibarriento commented 7 years ago

When you leave 'auto' the text_type is being saved as 'auto'. But when you force it, it's being saved as the chose language but set 'auto' in the combo. Then, when you update, it use the 'auto' and detects the 'plain text'. It's a front-end bug. I will check it

Thanks

facundobatista commented 7 years ago

The idea is that if you leave it in "auto" when creating, it should guess the text type, and from that moment on, it should never be in "auto" anymore, but with the guessed type

This would also avoid the glitch of having the text for part of a second without highlighting, and then suddenly highlighted, when you go and see a big linkode (because it brings the text from the server, in "auto", takes time to guess the type, and then it's highlighted).

facundobatista commented 7 years ago

Fixed, thanks!