Menu

#136 Multiline inline CSS needs newline reognition

2.4.3
open
None
Linux native
13 hours ago
4 days ago
No

When coding inline styles, it's often convenient to separate individual style statements with a newline in the code to simplify visual work on the styles associated with an element. For example:

<div style="
        border:5px solid red; 
        padding: 20px; 
        text-align:center;
        .......
  ">      

While this isn't recommended, it's extremely useful in complex code where, for instance, one needs to make a temporary edit to an element, and it's valid HTML/CSS code, One may not want to move off to a style section, possibly in another file, to declare a class for this single purpose.

Bluefish goes off duty after the first newline, however, and displays subsequent lines up until the line with the closing quote, as text, and doesn't provide any formatting help or text color clues.

Would it be possible for Bluefish to interpret this code format just as it would if the entire style attribute were on a single line with individual style definitions separated by simple white space?

Discussion

  • Lindsay Haisley

    • summary: Rendering of --> Multiline inline CSS needs newline reognition
     
  • Lindsay Haisley

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,7 +8,7 @@
             .......
       &#34;&gt;      
     ~~~
    -While this isn&#39;t recommended, it&#39;s extremely useful in complex code where, for instance, one needs to make a temporary edit to an element, and *it&#39;s valid HTML/CSS code*,  One may not want to move off to a &lt;style&gt; section, possibly in another file,  to declare a class for this single purpose.
    +While this isn&#39;t recommended, it&#39;s extremely useful in complex code where, for instance, one needs to make a temporary edit to an element, and *it&#39;s valid HTML/CSS code*,  One may not want to move off to a `style` section, possibly in another file,  to declare a class for this single purpose.
    
     Bluefish goes off duty after the first newline, however, and displays subsequent lines up until the line with the closing quote, as text, and doesn&#39;t provide any formatting help or text color clues.
    
     
  • Olivier Sessink

    Olivier Sessink - 13 hours ago

    what do you mean "Bluefish goes off duty after the first newline"? The syntax is highlighted correctly when I try this? Can you make a screenshot?

     

Log in to post a comment.