Skip to content

Multi line coloration #142

@Wyrdix

Description

@Wyrdix

I would like to add coloration to a syntax like so :

<MD>

<SEPARATOR>

<MD>

Where can be replaced by any markdown part and is a predefined string

In the end i tried to modify the coloration to have it only works if the SEPARATOR is present in its own paragraph (which means with empty line before and after).

But it seems like it's not possible to have a coloration around multiple lines ?

As an example heres what i've tried :

grammarRules: [
			{
				name: 'question',
				type: 'inline',
				definition: {
					match: '(\n *\n#\\?#( +|\n))',
					name: 'markup.inline.question',
					captures: {
						'1': { name: 'marker.definition.question.inline' }
					}
				}
			}
		],

(with the corresponding colors options that works when it's not multiline regex)

Don't know if it's a bug or a features

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions