wingyplus

wingyplus

Surface_formatter_plugin - a surface code format for Elixir 1.13 formatter plugin

Hi,

During learn surface and try elixir v1.13 features, I created a tool called surface_formatter_plugin. It’s a tool built on top of surface_formatter and Elixir v1.13 formatted plugin. This tool can format only code inside ~F sigil and .sface file extension.

The installation is just add {:surface_formatter_plugin, "~> 0.1"} to your mix dependencies block. And then run mix deps.get and mix deps.compile to make the plugin presents under deps directory. After that, just call mix format to format your code.

Since Elixir v1.13 is in development, the library set minimum elixir version to 1.13-dev. So, it needs to compile Elixir from master branch. :bowing_man:

Suggestion are welcome. :slight_smile:

Most Liked

wingyplus

wingyplus

Hi all,

I just want to say that the library repository is now archived because surface_formatter version 0.7.0 is now supporting the formatter plugin!!!

Thanks to @paulstatezny who spending an effort. :slight_smile:

paulstatezny

paulstatezny

I just wanted to drop in and say thanks @wingyplus , and that the last couple SurfaceFormatter releases include a formatter plug-in. :slight_smile: (See the docs.)

Also, starting in the next version of Surface, the formatter and formatter plug-in will come bundled with Surface itself.

Where Next?

Popular in Announcing Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
jakub-zawislak
Hi everyone, I’m coming from the Symfony (PHP) framework. I like Phoenix, but it has a one thing that was build much better in the Symfo...
New
Azolo
Hey everyone, I just released WebSockex which is a Elixir WebSocket client. WebSockex strives to work as a OTP special process, be RFC6...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
kip
Image is an image processing library for Elixir. It is based upon the fabulous vix library that provides a libvips wrapper for Elixir. I...
622 19460 194
New
wojtekmach
Hey everyone! Req is an HTTP client for Elixir that I’ve been working on for quite some time. There is already a lot of HTTP clients out...
New
Flo0807
Hello everyone! I am excited to share our heart project Backpex with you. After building several Phoenix applications, we realized that...
New

Other popular topics Top

ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement