HydrogenAudio

Hydrogenaudio Forum => Site Related Discussion => Topic started by: cmango on 2020-04-05 21:04:25

Title: Codeboxes
Post by: cmango on 2020-04-05 21:04:25
Could someone please tell me how to insert log files into a codebox? Also, what is the best way to insert dialog boxes? Save them as JPGs and then select them using the link below, and then dragging them into the appropriate spot in the body? I read the stickies about inserting, but don't quite know what is being explained.
Thanks
Title: Re: Codeboxes
Post by: kode54 on 2020-04-05 23:56:08
Use the code tags, they will automatically become boxes on this forum:

Use the Code tag:

Code: [Select]
test

[ code ]test[ /code ] (without the spaces)
Title: Re: Codeboxes
Post by: korth on 2020-04-06 00:48:05
Or use the button in the editor. Just highlight the text (hold the left mouse button and drag pointer over text) then click the code button.

When dealing with message windows that cannot be copied as plain text (e.g. exception or error dialog) it may be helpful to capture an image as a .jpg. Attached .jpg(s) will all appear at the bottom of the message (inline attachments not working) but links to image URLs can be placed anywhere. However when using free online image sharing sites, your .jpg will likely be deleted after a period of time so users who read the thread later won't see the pic.
Title: Re: Codeboxes
Post by: kode54 on 2020-04-06 02:18:32
No, apparently, inline attachments were never meant to work any more than they currently do. The thing we had before was an addon that no longer works.
Title: Re: Codeboxes
Post by: cmango on 2020-04-06 03:41:36
Thank you for the help kode54, codebox worked great! I will never paste a mile long file log into the body again! I will have to make a file with those instructions because I'm sure I will forget!
What I did with the images was save snips as jpgs, just as you suggest korth, and uploaded them by selecting off my computer using the utility below. I then tried to drag them into the body from there, which did succeed by inserting hyperlinks in the body, but when you clicked on the links the file was VERY small. I then tried wrapping the link text as per the pinned topic Inlined Images with  , which did result in inline pictures, but again the same VERY small ones. So it sounds like what you guys are saying is the only option for the text box jpgs is as attachments below. That's fine, I'll just reference them in the body and name the files appropriately as the names are visible on the links.
Title: Re: Codeboxes
Post by: cmango on 2020-04-06 03:51:26
I see what you're saying now korth, I could insert the address for hosted larger size photos on a site, but then they could get deleted as you say. I also see the code button now. Wow, I don't have to hit the bracket keys and the forward slash, kind of takes the fun out of it...thanks for your help guys!
Title: Re: Codeboxes
Post by: danadam on 2021-02-19 06:17:39
Use the code tags, they will automatically become boxes on this forum:
Any possibility to disable highlighting?


I then tried wrapping the link text as per the pinned topic Inlined Images with  , which did result in inline pictures, but again the same VERY small ones. So it sounds like what you guys are saying is the only option for the text box jpgs is as attachments below. That's fine, I'll just reference them in the body and name the files appropriately as the names are visible on the links.
Inlining attachments works but is rather cumbersome. It is described in Korth reply (https://hydrogenaud.io/index.php?topic=111074.msg983437#msg983437) in Attachments topic:
Quote
Code: [Select]
[attach type=image]n[/attach]
...
Where n is the attachment number. To find the attachment number, add the files to and post the message. Open the message and view the URL of each attachment (this can usually be achieved by hovering mouse pointer). Look for attach=nnnn in the URL (nnnn is the attachment number). Edit your message to add the attachment number(s) to the tag(s) and save the changes.