3

Where can I find a Vim syntax file for TYPO3 Fluid Templates? If it doesn't exist what syntax file could be used as example to create one?

mipmip
  • 1,072
  • 1
  • 10
  • 24

2 Answers2

2

OK, I created vim-fluid, a Vim plugin for the Fluid Template Engine offering indention and syntax highlighting for fluid code together with plain HTML and JavaScript and CSS code. It's working for me.

enter image description here

mipmip
  • 1,072
  • 1
  • 10
  • 24
1

I have not found one for Fluid templates. However, as the file extension is html, I think the easiest way to include Fluid Regions would be to use the html syntax file. If I find the time, I'll give it a shot.

Even though you did not ask, this is what I use for typoscript:

https://github.com/elmar-hinz/vim.typoscript

The syntax highlighting for fluid looks like this for me:

Short fluid template

So the only two things I really miss are an autoformatter that respects fluid tags as well as a fluid inline syntax highlighter. Otherwise it's quite neat already. Looking forward to other answers.

The F
  • 3,647
  • 1
  • 20
  • 28