[go-nuts] Re: VsCode syntax highlighting for tmpl files

2024-03-15 Thread Soyaib Zihad
"files.associations": {
"*.tmpl": "html"
}
add this to settings.json in vs-code and life is good.

On Sunday, October 13, 2019 at 9:49:58 PM UTC+6 Andreas wrote:

> the drawback is when I enter in .gohtml file
>
> ```{{```
>
> then vscode auto-copletes it with
>
> ```}}}```
>
> did you get the same?
>
>
> On Wednesday, September 25, 2019 at 5:18:51 PM UTC+3, Denis Bakhtin wrote:
>
>> This extension works well if templates have .gohtml extension. I had to 
>> rename mine.
>>
>> On Monday, September 23, 2019 at 7:25:52 PM UTC+4, cinem...@gmail.com 
>> wrote:
>>>
>>> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
>>> extension gotemplate-syntax 
>>>  
>>> but 
>>> seems it doesn't make the job.
>>>
>>>
>>> {{define "side"}}
>>> New Books
>>> There's nothing here
>>> {{end}}
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/ff32e974-8039-45c0-9495-1f284dba20c0n%40googlegroups.com.


[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-10-13 Thread Andreas
the drawback is when I enter in .gohtml file

```{{```

then vscode auto-copletes it with

```}}}```

did you get the same?


On Wednesday, September 25, 2019 at 5:18:51 PM UTC+3, Denis Bakhtin wrote:
>
> This extension works well if templates have .gohtml extension. I had to 
> rename mine.
>
> On Monday, September 23, 2019 at 7:25:52 PM UTC+4, cinem...@gmail.com 
> wrote:
>>
>> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
>> extension gotemplate-syntax 
>>  
>> but 
>> seems it doesn't make the job.
>>
>>
>> {{define "side"}}
>> New Books
>> There's nothing here
>> {{end}}
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6c460a78-5f33-4b24-beac-5fd5b022cf8b%40googlegroups.com.


[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-09-28 Thread Andreas
nice

On Wednesday, September 25, 2019 at 5:18:51 PM UTC+3, Denis Bakhtin wrote:
>
> This extension works well if templates have .gohtml extension. I had to 
> rename mine.
>
> On Monday, September 23, 2019 at 7:25:52 PM UTC+4, cinem...@gmail.com 
> wrote:
>>
>> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
>> extension gotemplate-syntax 
>>  
>> but 
>> seems it doesn't make the job.
>>
>>
>> {{define "side"}}
>> New Books
>> There's nothing here
>> {{end}}
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/80b93956-8860-4a11-9299-88b4d599a132%40googlegroups.com.


[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-09-25 Thread Denis Bakhtin
This extension works well if templates have .gohtml extension. I had to 
rename mine.

On Monday, September 23, 2019 at 7:25:52 PM UTC+4, cinem...@gmail.com wrote:
>
> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
> extension gotemplate-syntax 
>  
> but 
> seems it doesn't make the job.
>
>
> {{define "side"}}
> New Books
> There's nothing here
> {{end}}
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/55db7034-bbee-4764-801d-9b0d7b06e515%40googlegroups.com.


[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-09-24 Thread cinematown
thnks, it's better than nothing

On Tuesday, September 24, 2019 at 8:32:55 AM UTC+3, Subramanian Sridharan 
wrote:
>
> Nunjucks seems to do the trick.
>
> Nunjucks - Visual Studio Marketplace 
> 
>
> ext install extension nunjucks
>>
>
> When you save a file with some file extension, VSCode automatically 
> prompts you to install a related VSCode extension.
> That's how I came to know about this extension. 
>
> On Monday, September 23, 2019 at 8:55:52 PM UTC+5:30, cinem...@gmail.com 
> wrote:
>>
>> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
>> extension gotemplate-syntax 
>>  
>> but 
>> seems it doesn't make the job.
>>
>>
>> {{define "side"}}
>> New Books
>> There's nothing here
>> {{end}}
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/00d9845b-54dc-4361-8cb9-9ab6e72c81ae%40googlegroups.com.


[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-09-23 Thread Subramanian Sridharan
Nunjucks seems to do the trick.

Nunjucks - Visual Studio Marketplace 


ext install extension nunjucks
>

When you save a file with some file extension, VSCode automatically prompts 
you to install a related VSCode extension.
That's how I came to know about this extension. 

On Monday, September 23, 2019 at 8:55:52 PM UTC+5:30, cinem...@gmail.com 
wrote:
>
> Is there way to highlight templates files (.tmpl) in VSCode? There is an 
> extension gotemplate-syntax 
>  
> but 
> seems it doesn't make the job.
>
>
> {{define "side"}}
> New Books
> There's nothing here
> {{end}}
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a4f50184-e5d9-454a-b576-39ffab9c8327%40googlegroups.com.