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

Add markdown-style text formatting #32

Open
leonardt opened this issue Jan 22, 2014 · 4 comments
Open

Add markdown-style text formatting #32

leonardt opened this issue Jan 22, 2014 · 4 comments
Labels

Comments

@leonardt
Copy link

I believe this would all be handled inside the syntax highlighting file, but it would be nice to have inline text formatting similar to markdown (and the real orgmode)

i.e. something along the lines of *bold*, **italic**, etc...

@danielmagnussons
Copy link
Owner

Agree, would be nice to be able to set some formatting. Not sure how it works, will need to investigate ;p

@leonardt
Copy link
Author

I can take a look into this, it might be as simple as grabbing the regex patterns from a markdown tmLanguage to match certain patterns.
i.e. for bold (https://github.com/SublimeText-Markdown/MarkdownEditing/blob/master/Markdown.tmLanguage#L430)

Would you be okay with Markdown syntax or is there another one you'd prefer? I know real emacs org mode uses *bold* and /italics/.

After the patterns are set it's just a matter of giving our newly defined syntax blocks a color in the colorscheme.

I only perceive a possible issue which is collision of patterns when dealing with headers which also use *, so that's one thing to be careful about, but perhaps there will be no conflict at all.

@danielmagnussons
Copy link
Owner

Keep syntax orgmode-ish, if we can add markdown later, its a bonus ;p

*bold*, /italic/, +strike-through+, _underlined_

@rbenson
Copy link
Contributor

rbenson commented Feb 11, 2014

Sort of the same, can you add md - like headings? When you do * the whole line is painted versus the words if you apply a background to the theme?

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

No branches or pull requests

3 participants