Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra syntax highlighting features #5

Open
fusion809 opened this issue Aug 21, 2015 · 8 comments
Open

Extra syntax highlighting features #5

fusion809 opened this issue Aug 21, 2015 · 8 comments
Assignees

Comments

@fusion809
Copy link

Hi,

I'd like to ask for some extra syntax-highlighting capabilities to be added to this package, namely support for tags such as:

  • <charinsert>
  • <imagemap>
  • <math>
  • <nowiki>
  • <poem>
  • <pre>
  • <ref>
  • <references>
  • <source>
  • <syntaxhighlight>

, parser functions ({{#if:}}, {{#expr:}}, {{#tag:}}) and templates. I'd suggest, if you'd like some example specifics on how each syntactic component should be highlighted, that it be borrowed from the highlighting used by wikEd. But any highlighting scheme will make me happy so long as it does not make it difficult to read the wikitext.

Thanks for your time,
Brenton

@cjwilburn
Copy link
Owner

Hi Brenton,

Thanks for taking a minute to write. I'll test out what syntax highlighting would look like on my local version and see if I'd like to merge it in to the plugin.

Best,

Courtney

@cjwilburn cjwilburn self-assigned this Aug 22, 2015
@peterjc
Copy link

peterjc commented Nov 24, 2015

Adding <source> would be great, bonus marks for doing language specific coloring within a source block, e.g.

<source lang=Python>
import antigravity
</source>

@CyberSkull
Copy link

I'd like to see more support for generic tags, anything contained in angle brackets should just be treated as a tag.

Also template arguments in triple curly braces should be supported as well.

@Tejeev
Copy link

Tejeev commented Aug 1, 2016

It would be useful if this offered syntax highlighting for the different headings and basically anything between {{{}}} tags

@Tejeev
Copy link

Tejeev commented Aug 1, 2016

Pretty much just what CyberSkull said.

@Tejeev
Copy link

Tejeev commented Aug 1, 2016

Emphasis
''italics''; '''bold'''; '''''bold italics'''''; ''mixed '''bold''' and italics''; ---- horizontal rule.
Headings
= Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.
Lists
space and one of: * bullets; 1., a., A., i., I. numbered items; 1.#n start numbering at n; space alone indents.
Links
JoinCapitalizedWords; [[target|linktext]].
Tables
|| cell text |||| cell text spanning 2 columns ||; no trailing white space allowed after tables or titles.

@Tejeev
Copy link

Tejeev commented Aug 1, 2016

Ill try to figure it out and add some of this if I get the time.

@MaPeras
Copy link

MaPeras commented Jun 5, 2021

Did you have a chance to add template highlighting for {{ }} meanwhile? This would be an immense help. Anyhow thank you for this awesome package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants