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 Libraries Top

josevalim
Hi everyone, We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
RobertDober
Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
239 11851 134
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...
574 16576 179
New
archan937
It is a well-know topic within the Elixir community: “To mock or not to mock? :)” Every alchemist probably has his / her own opinion con...
New
michalmuskala
Hello everybody. I have just released Jason - a new JSON library. You might be wondering, why do we need a new library? The primary foc...
New
wfgilman
I’ve cleaned up and open sourced three financial libraries I was using for my company. They are bindings for the APIs of these three comp...
New
tfwright
After working on it for a couple of months and using it in production for most of that time, today I’ve released LiveAdmin, a LiveView ba...
New
Crowdhailer
Experimenting with this code. OK.try do user <- fetch_user(1) cart <- fetch_cart(1) order = checkout(cart, user) save_or...
New
Qqwy
While not as prevalent as in imperative languages, arrays (collections with efficient random element access) are still very useful in Eli...
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

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Sub Categories:

We're in Beta

About us Mission Statement