sadjow

sadjow

Recommended Plugins for VSCode LiveView

Hey guys, I am trying out LiveView. I am really impressed with the results. But, when using it it is being hard to find a good plugin for syntax highlighting, do you have one? I tried the most popular ones.

~L sigil not highlighted. (I removed the default CSS framework and using bootstrap. I did copy the bootstrap code from the Live Dashboard, why not use bootstrap by default? I almost give up, just because the bootstrap modal was not working. :smiley: )

Marked As Solved

dbern

dbern

Try using the ElixirLS vscode plugin.

I think nowadays it’s the defacto plugin for Elixir projects.

It should provide syntax highlighting and some intellisense.

If that doesn’t work out, as an alternative, you could separate the html into a .leex file and have the render function call MyApp.ExampleView.render("mypage.html"). The leex file ought to be highlighted.

Last Post!

sadjow

sadjow

Thanks a lot for sharing the ElixirLS extension. So, in my case it was conflicting with the default visual studio code’s elixir extension. But, it seems neither vscode, neither emacs, or Intellij has support for highlighting ~L sigil yet. Thanks the help @dbern!

Where Next?

Popular in Questions Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
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

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
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
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
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement