Git Product home page Git Product logo

Comments (9)

angelozerr avatar angelozerr commented on May 24, 2024

@NikolasKomonen I have just initialize the formatter that iy can now implement. You can see quickly https://github.com/Microsoft/vscode-html-languageservice/blob/master/src/services/htmlFormatter.ts which uses beautify.

If you are interested to support it, you must implement your work at https://github.com/angelozerr/xml-languageserver/blob/master/org.eclipse.xml.languageserver/src/main/java/org/eclipse/xml/languageserver/services/XMLFormatter.java#L33

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

@NikolasKomonen @fbricon I'm doing a big refactoring to clean API. Please wait my push before working on some issues. Sorry for that -(

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

@NikolasKomonen @fbricon I have finished my big refatctoring.

I have implemented formatting feature (with range) which works with XML not well formatted. You can find tests at https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/services/XMLFormatterTest.java

Hope you will like it.

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

This issue requires tests. @NikolasKomonen do you want to work on this issue?

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

@NikolasKomonen is there any chance that you work on test and fix bug with prolog #43 (comment)

from lemminx.

NikolasKomonen avatar NikolasKomonen commented on May 24, 2024

@angelozerr For sure, Ill work on #43 and make sure this works with it.

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

Cool, thanks!

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

I close this issue since NikolasKomonen@eba46be fixes the prolog formatti,g problem.

Thanks @NikolasKomonen ! Please see #67 to give settings for format.

from lemminx.

angelozerr avatar angelozerr commented on May 24, 2024

Here a demo:

See wiki at https://github.com/angelozerr/lsp4xml/wiki/Features#format for more information

from lemminx.

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.