Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase the editor width or viewable area in Typora

When writing in the Typora, the viewable width (editor width) is limited.

enter image description here

How could I enlarge from A to B?

like image 995
AbstProcDo Avatar asked Oct 25 '18 07:10

AbstProcDo


People also ask

How could I enlarge the viewable width in typora?

When writing in the Typora, the viewable width (editor width) is limited. How could I enlarge from A to B? Show activity on this post. You can change CSS file of the theme you are using. Go to File > Preference or press Ctrl+Comma.

How do I change the max width of a CSS page?

In CSS file go to #write (write id). Here change the value of max-width. Default value of max-width in this theme is 860px. You can increase this to whatever you want. For example: In some themes, you may also find max-width in em instead of px.

How to create a table in typora?

In Typora, you can write or edit the markdown text to add or modify tables. We also provides menu entry, context menu, shortcut keys, drag & move, tooltips to make table editing easier to use under related GUI. To create a table in Typora, you can simply write out a table header in markdown. Or, you can also insert table from the menu bar.

What is the maximum page width of the editing window?

The width of the page within the editing window is always not exceeding 700px. In other words, while example shown above doest not work, if i set the max-width to 100px, the page width will become 100px. I want to know what can I do to get a wider page width? (I prefer to not change the font-size, by the way). 3 Likes


2 Answers

You can change CSS file of the theme you are using. Go to File > Preference or press Ctrl+Comma. In Themes click Open Theme Folder.

screenshot

Open the CSS file of your theme. For example I'm using Github theme.

image

So I'm opening github.css file. In CSS file go to #write (write id). Here change the value of max-width.

image

Default value of max-width in this theme is 860px. You can increase this to whatever you want. For example:

max-width: 1200px;

In some themes, you may also find max-width in em instead of px. For example:

max-width: 40em;

Increase this value to whatever width you prefer.

In case you want the editor to be of full width, remove this max-width property entirely.

like image 113
itsmysterybox Avatar answered Sep 22 '22 10:09

itsmysterybox


Typora and responsible width

For the record, you can edit the file as follow.

  • Look at the folders where is the CSS (as indicated by itsmysterybox)

  • Find the .css file and copy it with a new file. For example github2.css

  • Also, copy the folder related with the .css that you copied and rename it with the same name, for example, github2\

  • Find the next lines:

    @media only screen and (min-width: 1400px) { #write { max-width: 1024px; } }

    @media only screen and (min-width: 1800px) { #write { max-width: 1200px; } }

And delete it.

  • Find the next line

    #write {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px;
    padding-bottom: 100px;
    }

And edit the line max-width: 860px; to max-width: 95%;

  • Restart the application and select the new theme (see image)

Why 95% instead of 100%?

We are giving it some space for the scroll bar. However, and apparently, 100% also works and it doesn't break any visualization.

Why we need to copy the .css and the folder instead of editing an existing one?

Because updates of the program could (and most likely will) replace it.

enter image description here

like image 22
magallanes Avatar answered Sep 22 '22 10:09

magallanes