FIXED: Incorrect highlighter on file open

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

FIXED: Incorrect highlighter on file open

Post by pjj »

New algorithm that determines the file highlighter seemingly has a bug. If I open a PHP file -- that is a file with php extension -- that starts with <style> tag, highlighter is set to CSS. If it starts with another HTML tag, eg. <strong>, highlighter is set to HTML.

If I open a file without extension (for which I have set HTML highlighter in settings) and it starts with <?php opening tag, followed by <style>:

Code: Select all

<?php
// TODO do something
?>

<style>
etc. 
it opens as CSS.

I don't have "Activate highlighter on unknown file extension" set on, since all these (and more) file types I edit in RJ TE are associated with the editor (hence they're not "unknown").
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6566
Joined: 19 Jul 2006 14:29

Re: Incorrect highlighter on file open

Post by Rickard Johansson »

Used the wrong string when saving the current highlighter information. It only becomes an issue if you use multiple highlighters as in PHP, HTML etc.

Fixed in next release (v16.10). Thanks!
Post Reply