Changing How PBF Posts Are Displayed
-
So the scroll bars on PBF posts are pretty annoying, especially the horizontal ones. It appears the forum markdown plugin is seeing them as code so formats them that way. I think we can potentially change this.
@RoiEX I took a quick look a and I think the Markdown plugin settings can be changed for code blocks. If you turn off or change the CSS then I think it'll display differently. Here is a screenshot of the settings:
Thoughts?
-
@redrum Never tried this feature, mainly because I find it useful in general.
I agree that this will probably disable the code blocks for the posts, however you should keep in mind that changing this feature will probably break the whole post turn summary formatting, especially with leading whitespaces that get trimmed down using markdown.
Although I personally like it when such generic statements are in distinct code blocks, so the whole post isn't cluttered with them (seeing this a lot with stacktraces in github), I can see that the horizontal scrollbars can be really annoying without a touchpad on a laptop or a modern mouse that supports this feature natively.The only alternative I can come up with right now is to maybe modify the ForumPosters to insert markdown formatting symbols before relevant positions (determined by leading whitespace or something), so the whole thing keeps being readable and it doesn't get turned into a code block either
-
@RoiEX Yeah I kind of see 3 options:
- Disable it and see how things look. With Markdown probably removing all the leading spaces, it probably won't look good but this is the simplest thing to try.
- See if any of the alternative css options impact scrollbars. The biggest problem is the horizontal scrollbar and if any of them change that then that would work.
- Update the forum poster to use markdown formatting.
-
@RoiEX said in Changing How PBF Posts Are Displayed:
Never tried this feature, mainly because I find it useful in general.
I agree that this will probably disable the code blocks for the posts, however you should keep in mind that changing this feature will probably break the whole post turn summary formatting, especially with leading whitespaces that get trimmed down using markdown.Turning off this feature actually doesn't do anything except remove the colors. The code block is still there with the scroll bars.
Although I personally like it when such generic statements are in distinct code blocks, so the whole post isn't cluttered with them (seeing this a lot with stacktraces in github), I can see that the horizontal scrollbars can be really annoying without a touchpad on a laptop or a modern mouse that supports this feature natively.
Developers like us like this sort of thing, logs, code, it keeps everything where it should be. Most people using TripleA are not developers. So we should take their feedback and do something different.
The only alternative I can come up with right now is to maybe modify the ForumPosters to insert markdown formatting symbols before relevant positions
I think this is the way to go. The great thing about Markdown is that the raw text is just as readable as the formatted text. The one thing that I ask is not to use level 1 headers because they get translated into H1 tags and multiple H1 tags on a page is generally bad for SEO.
This is the example I posted on a&a .org:
Round: 1 --------- ### Purchase Units - Chinese - Trigger Chinese Artillery Supplies: Chinese has their production frontier changed to: productionChinese_Burma_Road_Open - Chinese buy 3 artilleries; Remaining resources: 0 PUs; ### Combat Move - Chinese ### Non Combat Move - Chinese - 4 infantry moved from Yunnan to Szechwan - 2 infantry moved from Hunan to Yunnan - 1 infantry moved from Shensi to Szechwan - 2 infantry moved from Suiyuyan to Shensi - 1 fighter moved from Szechwan to Burma ### Place Units - Chinese - 3 artilleries placed in Szechwan ### Turn Complete - Chinese - Chinese collect 10 PUs; end with 10 PUs - Objective Chinese 1 Burma Road: Chinese met a national objective for an additional 6 PUs; end with 16 PUs
renders in to this, which is super nice
Round: 1
Purchase Units - Chinese
- Trigger Chinese Artillery Supplies: Chinese has their production frontier changed to: productionChinese_Burma_Road_Open
- Chinese buy 3 artilleries; Remaining resources: 0 PUs;
Combat Move - Chinese
Non Combat Move - Chinese
- 4 infantry moved from Yunnan to Szechwan
- 2 infantry moved from Hunan to Yunnan
- 1 infantry moved from Shensi to Szechwan
- 2 infantry moved from Suiyuyan to Shensi
- 1 fighter moved from Szechwan to Burma
Place Units - Chinese
- 3 artilleries placed in Szechwan
Turn Complete - Chinese
- Chinese collect 10 PUs; end with 10 PUs
- Objective Chinese 1 Burma Road: Chinese met a national objective for an additional 6 PUs; end with 16 PUs