How to make template for short stories or how to set it up for a writer.

Hi
I like to write literature.

How would you configure Silverbullet if you want to write stories, poems, plays, etc.?

I'll also use it to summarize books I read and jot down other things like projects, etc. But the main purpose is writing.

For example:
How i can make somekind of template for for example short stories? With justify paragraph, some font, etc?

First time using silverbullet. Don't know how to code.

Thanks!

P.s.i don't speak English.

I'm not sure what you're hoping for. SilverBullet doesn't really have formatting tools, it's a markdown editor. If you're looking for something like that, perhaps a tool like Word, Scrivener or similar is more what you're looking for? What brought you to SilverBullet exactly?

Hi,

Thanks. Yes, I know that SilverBullet doesn't have formatting tools.

I like self-hosting things. I like open-source software, local-first applications, privacy, and zero tracking. :wink: I also like minimalism, and I hate Scrivener.

Another reason I like Markdown is that my files aren't trapped inside a database that could become corrupted and cause me headaches. They're just plain text files, which makes me feel much more in control of my data.

I was looking for a replacement for TriliumNext because it seems to have a lot of features that I don't end up using. I also don't like being dependent on a database. And I was also looking for something that could live on the web. I like being able to open my documents from anywhere with just a browser.

So I asked on Reddit:

I don't mind writing some code here and there. In fact, I like the idea of not using the mouse and relying on keyboard shortcuts.

Maybe my question was too broad. The problem I'm having right now is figuring out how to create a template that automatically justifies paragraphs whenever I tag a note as a short story or when the file is inside a specific directory (for example, a directory called ShortStories).

I asked a few AI assistants, but none of them could give me working code or explain where I should paste it.

P.S.: Just to clarify, when I said I don't know how to program, I meant that I'm not a programmer. I've managed to put together a few things in Python, and I have an idea of what CSS is, but my understanding is very much "a monkey with a knife." :grinning_face_with_smiling_eyes:

I'm happy to tweak existing code and learn just enough to get things working.

This was translated by AI.

Thank you very much!

The rendered Markdown is HTML that can be styled with CSS. One option might be:

  1. Create a custom style (I have a grab bag of classes in STYLES.)
```space-style
.justified-page .cm-line:not(.sb-header):not(.sb-code) {
  text-align: justify !important;
}
  1. Define a tag in your CONFIG that adds that class to the Page Decorations:
```space-lua
tag.define {
  name = "story",
  transform = function(o)
    o.pageDecoration = {
      disableTOC = true,
      cssClasses = { 'justified-page' },
      prefix = "📖 "
    }
    return o
  end
}
  1. Tag each story in its frontmatter:
---
tags: story
---

(Remember to run the System: Reload command (Ctrl-Alt-R).)

But I suspect SilverBullet is not the tool you need.

Thank you very much for your response.
So far, i like it, time will tell.