Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 a few extra tags
#1
I made a few extra BBCodes. It seems illogical to use the code box for error output, code output, especially when it syntax highlighted for no reason

These are (currently) in the drop down BBCode labeled "insert" and you can select which one you want. These are custom BBcodes. We might move them to their own code button (if required) later.

Just put the desired text within the 2 BBCodes as normal. The titles Error and Output come alone with the tags to help signify


Error:
[color=#222222][size=small]Traceback (most recent call last):   File "generate-1.py", line 16, in <module>     function5()   File "generate-1.py", line 14, in function5     function4()   File "generate-1.py", line 11, in function4     function3()   File "generate-1.py", line 8, in function3     function2()   File "generate-1.py", line 5, in function2     function1()   File "generate-1.py", line 2, in function1     raise RuntimeError('xxx') RuntimeError: xxx[/size][/color]
Output:
metulburr@ubuntu:~$ yardsale -h usage: yardsale [-h] [-l] [-d] [-t] [-s] [-a] [-e] [-p PAGE] [-o OUTPUT]                 [-x [EXCLUDE [EXCLUDE ...]]] [-i [INCLUDE [INCLUDE ...]]]                 [-f DIFF] [-r READ] [-w] [-c] Arguments optional arguments:   -h, --help            show this help message and exit   -l, --link            Remove links from output   -d, --desc            Remove descriptions from output   -t, --time            Remove date and time from output   -s, --sep             Remove separator from output   -a, --address         Remove address from output   -e, --entire          Remove entire total sales number from output   -p PAGE, --page PAGE  number of pages to parse   -o OUTPUT, --output OUTPUT                         output to filename given   -x [EXCLUDE [EXCLUDE ...]], --exclude [EXCLUDE [EXCLUDE ...]]                         remove entries from list if found in address line   -i [INCLUDE [INCLUDE ...]], --include [INCLUDE [INCLUDE ...]]                         include only entries from list if found in address                         line   -f DIFF, --diff DIFF  Check current difference from file. This file is a                         previous output from -o   -r READ, --read READ  read all existing file   -w, --show            show file after creating   -c, --clock           output time
wavic, j.crater, nilamo like this post
Quote
#2
(Oct-04-2016, 03:13 PM)metulburr Wrote: especially when it syntax highlighted for no reason
I actually often like the syntax highlighting, since it separates strings from non-strings. I'm alright with the big red box though, the indentation is the most important thing anyway.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Quote
#3
One formatting I miss is the inline fixed font (actually the <code> tag) with possibly a slightly darker background (like the backquotes in markdown).
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Do not know how to add "Code Tags" or "Error Tags" to my submissions mattkrebs 2 1,381 Mar-21-2017, 04:15 PM
Last Post: metulburr

Forum Jump:


Users browsing this thread: 1 Guest(s)