amp icon indicating copy to clipboard operation
amp copied to clipboard

[FEATURE REQUEST] Specify language when writing new file (buffer)

Open dodalovic opened this issue 5 years ago • 2 comments

Hi, thanks for you lovely editor! I'm not sure if there's an option to specify file type (highlighting) when writing new file (buffer, pressing B key)

Would like to use this editor when I show some code snippets I'm about to write, but without going to the IDE. Would be nice if :

  1. I press B
  2. Somehow I specify that, for example, I'm about to write java file
  3. Syntax highlighting takes place immediately

Thanks!

dodalovic avatar Sep 22 '19 08:09 dodalovic

This is already implemented: https://amp.rs/docs/configuration/#manually-picking-a-definition

Don't know if you need to use the version in master (that's what i'm using) or if was already released.

pbgc avatar Sep 22 '19 10:09 pbgc

Doesn't work for me unfortunately. Seems that should have been released with 0.6.0, ! 65180add121fecf07a6b45480744b73bf40f8d1f

dodalovic avatar Sep 22 '19 10:09 dodalovic