How can I insert regular text into the format string if the text I want to insert contains letters that get formatted? For example, I want to make it read: Q1 for first quarter, but if I put QQ, it puts 11. I want to put the day # of the year, but if I put Day#DDD it comes out: 3am1#215
Second question: How do I center the output inside the browser source box? I'm sure this is a simple OBS question (exposing how noob I am, but none-the-less I would like to figure this out)
For unformatted text in the format you would use escape characters, please refer to the format link in the instructions and go to the
Escaping characters
section of the page, press control + F and paste that in the search bar to find it faster. As a reminder, here is the link:
https://momentjs.com/docs/#/displaying/format/
For your examples Day#DDD you would put [Day]#DDD which would result in Day#215, For the quarter, use [Q]Q, which would result in Q1. Anything you don't want to be formatted, put it in brackets: [ ]
For centering, the browser in OBS is simple and has no logic, I could add logic to the HTML but that would require me to write in JS and I would prefer to not do that.
As a work around, you can adjust the browser source to the edges of the browser display, the height of a single line is 60, the width is what ever you put your string format to. Note that if the text goes past the width you set, it will move to a new line, so instead of one line you will have two, so make sure to add some space to the end of width, say 5 pixels.
The current version of OBS does not show the changes live like it did in previous versions, so you will need to confirm your change then view it again and open and change over and over until you get it just right.
You can also just crop the browser source to the appropriate size, make sure the source is unlocked, hold alt and drag the red box into place. Cropped edges will be dashed in green. This is probably the easier method...
Once you have the browser source either cropped or adjusted into place, select the source again and press control + F, this will have the source fill the screen and center it. Once that happens, move the top and or bottom bars of the red box into place, you will notice that the browser will stay in the center of the screen. It will also adjust its size according to the inside of size of the red bounding box.
Once you are done. hit the lock icon and lock the source into place so it does not move.
I hope that helps.