Coder Social home page Coder Social logo

Comments (7)

0b10011 avatar 0b10011 commented on June 4, 2024

👍

from brackets-beautify.

oestrogen avatar oestrogen commented on June 4, 2024

I have the same problem with this line

<div class="shipping">about <b>$196</b> with shipping</div>

turning into

<div class="shipping">about
    <b>$196</b>with shipping</div>

after beautification.

from brackets-beautify.

drewhamlett avatar drewhamlett commented on June 4, 2024

Please pull version from the repository and add .jsbeautifyrc to your project root.

Then paste this in there.

{
    "indent_size": 4,
    "indent_char": " ",
    "indent_level": 0,
    "indent_with_tabs": false,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "jslint_happy": false,
    "brace_style": "collapse",
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "space_before_conditional": true,
    "break_chained_methods": false,
    "eval_code": false,
    "unescape_strings": false,
    "wrap_line_length": 0,
    "unformatted": ["b", "span", "i"]
}

The important part is the unformatted section. This will fix your issue.

Also note that the command changed Ctrl + Shift + L. If your on Mac it's Cmd + Shift + L. Thanks

from brackets-beautify.

mrmckeb avatar mrmckeb commented on June 4, 2024

Thanks for the workaround. When will this be updated in the plugin?

from brackets-beautify.

drewhamlett avatar drewhamlett commented on June 4, 2024

This is live in the plugin repository. I'm closing unless we need to open again. Thanks!

from brackets-beautify.

testergitrv avatar testergitrv commented on June 4, 2024

The problem is still occurring for me, I just tried the sprint 38 release, the plugin from the repository and the .jsbeautifyrc

most rewarding way gets turned into

"most
<b>rewarding</b>way"

from brackets-beautify.

drewhamlett avatar drewhamlett commented on June 4, 2024

I'm sorry, I had a regression somewhere. Please check the new version of the extension in the registry.

from brackets-beautify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.