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

varying font sizes within single document #6626

Open
resistor4u opened this issue Feb 26, 2025 · 1 comment
Open

varying font sizes within single document #6626

resistor4u opened this issue Feb 26, 2025 · 1 comment

Comments

@resistor4u
Copy link

Problem description

Variable font sizes within a single document really aids my ability to organize material and stay on track, and I'm sure I ain't the only one. I'm talking especially about markdown docs. Syntax highlighting on styled strings like bold, italics, headers, notes, etc., is crucial, yes. But the way TextMate does things where headings increase or decrease in size according to the heading level (see screenshot) is just super. In fact, this feature is the only thing keeping me from fully transitioning to ST. All other fonts can stay the same size for all I care.

Preferred solution

Image

Alternatives

An alternative? Maybe allowing multiple font types in the same document? If you select an inherently larger font in header contexts, then return to a smaller font type, the size differences between the two fonts could satisfy this. Here, I think the difference would be marginal and not worth the tradeoff for the jarring effects of going between two font types---can you imagine headers in Helvetica and text in Times? Yuck.

Additional Information

I know ST is a code editor and not a word processor. But this feature could be useful for all kinds of scripting languages, like R or Python, where you can use variable font sizes in "nested" levels of comments to distinguish functions, definitions, etc.

@deathaxe
Copy link
Collaborator

deathaxe commented Mar 1, 2025

Sublime Text is a “plain text” code editor not designed to in-place render formatted text like a word processor app (MS Word, LibreOffice Writer, …).

It can only render italic, bold and underlined text based on syntax definitions to emphasize special keywords or variables.

from: https://forum.sublimetext.com/t/inline-live-preview-for-markdown/75174/2?u=deathaxe

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

2 participants