FIXED: Incorrect highlighter on file open
Posted: 06 Nov 2023 09:16
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>:
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").
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.
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").