LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 07-24-2017, 08:43 AM   #1
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311
Blog Entries: 2

Rep: Reputation: 16
Question LISTS Function broken by [*]


LISTS
I would like to use your site's list function to create a multilayed list within a post (linux questions.org):

1. declare array
2. assiagn array
3. List all elements in array - Usually write array[@]; but array[*] OK too
4. display 1st element of array
5. pass array to function
a. trait one
b. trait two
Attempt 01:
  1. declare array
  2. assiagn array
  3. List all elements in array - Usually write array[@]; but array
  4. OK, too.
  5. display 1st element of array
  6. pass array to function
    1. trait one
    2. trait two

This fails because of the "but array[*] OK, too." code, more specifically because "[*]" ends up triggering a new list item.

How does one escape a certain subsection of the {Left Bracket}LIST=1]...[/LIST]codeblock?

Attempt 02:
A workaround is closing the list and then recontinuing the list later on:
  1. declare array
  2. assign array
  3. List all elements in array - Usually write array[@]; but
array[*] OK, too.
  1. (Hopefully this will start counting from "4".)
  2. display 1st element of array
  3. pass array to function
    1. trait one
    2. trait two

But alas, no. Even though "=4", still the list starts back up again from 1. And the "array[*] OK, too." segment is on it's own line, not where it should be, which is on the end of the above line.

How do we do this??

Last edited by andrew.comly; 07-24-2017 at 11:07 PM.
 
Old 07-25-2017, 09:01 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by andrew.comly View Post
LISTS
I would like to use your site's list function to create a multilayed list within a post (linux questions.org):

1. declare array
2. assiagn array
3. List all elements in array - Usually write array[@]; but array[*] OK too
4. display 1st element of array
5. pass array to function

a. trait one

b. trait two


Attempt 01:

declare array
assiagn array
List all elements in array - Usually write array[@]; but array
OK, too.
display 1st element of array
pass array to function
trait one
trait two


This fails because of the "but array[*] OK, too." code, more specifically because "[*]" ends up triggering a new list item.

How does one escape a certain subsection of the {Left Bracket}LIST=1]...[/LIST]codeblock?

Attempt 02:
A workaround is closing the list and then recontinuing the list later on:

declare array
assign array
List all elements in array - Usually write array[@]; but

array[*] OK, too.

(Hopefully this will start counting from "4".)
display 1st element of array
pass array to function
trait one
trait two


But alas, no. Even though "=4", still the list starts back up again from 1. And the "array[*] OK, too." segment is on it's own line, not where it should be, which is on the end of the above line.

How do we do this??
I'm thinking a couple of things here about your post:
  1. It should maybe be in LQ Suggestions and Feedback?
    1. It seems to be asking how to form multi-layer lists using the BBCodes for the site
    2. But then it discusses using bash like notation
  2. Are you proposing a change to LQ?
  3. Are you asking how to use the existing LQ features?
  4. Are you saying you cannot accomplish a sub-list and have the first list continue?
Can you please clarify your question?
[list=1][*]It should maybe be in LQ Suggestions and Feedback?[list=a][*]It seems to be asking how to form multi-layer lists using the BBCodes for the site[*]But then it discusses using bash like notation[/list][*]Are you proposing a change to LQ?[*]Are you asking how to use the existing LQ features?[*]Are you saying you cannot accomplish a sub-list and have the first list continue?[/list]
 
1 members found this post helpful.
Old 07-25-2017, 11:56 PM   #3
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Red face to clarify

ISSUE 1:
Quote:
Originally Posted by rtmistler View Post
Can you please clarify your question?
I sure wish I could do better in asking clearer questions, but every time I re-read the xy question article, I still just can't do a better job.

ISSUE 2:
Quote:
Originally Posted by rtmistler View Post
I'm thinking a couple of things here about your post:[list=1]...
  1. It seems to be asking how to form multi-layer lists using the BBCodes for the site
Yes, I am asking how to form multi-layer lists using the LinuxQuestions markdown codes. You have mentioned "BB Codes"! That's interesting term, may I verify that "BB Codes" is the official term to describing the below site coding methods?
Underline
{left bracket}U]...[/U]
List
{left bracket}list]...{left bracket}/list]
URL link
{left bracket}URL=https://...php]link title here[/URL]
ISSUE 3:
Quote:
Originally Posted by rtmistler View Post
  1. ...
  2. ...
  3. Are you asking how to use the existing LQ features?
  4. Are you saying you cannot accomplish a sub-list and have the first list continue?
Yes, I would like to learn how to use current features. More specifically, even though I am fully capable of making a two tiered lists, I don't know how to escape the new item code "[*]".

Quote:
Originally Posted by rtmistler View Post
  1. ...
    1. ...
    2. But then it discusses using bash like notation
  2. ...
I guess the sample list I made wasn't the absolute most simple example I could have made. Perhaps would the following be better?

Sample list
  1. First {How do I get rid of this annoying blank line between the title of the list "Sample list" and this current 1st item "First"?} **Question 2
  2. Second
  3. Third
    1. The letter A (I would like to write a {left bracket} {star} {right bracket} here!) **Question 1
    2. The letter B
  4. Fourth
  5. Fifth

Question 1: The letter A (I would like to write a {left bracket} {star} {right bracket} here!), hence the title lists function broken by "[*]".
Question 2: Why the extra blank line between the title of the list ("Sample list") and the 1st item ("First")?

Last edited by andrew.comly; 07-25-2017 at 11:59 PM. Reason: CLArity
 
Old 07-26-2017, 12:06 AM   #4
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Lightbulb noparse??!

Quote:
Originally Posted by rtmistler View Post
[indent][color=green][list=1][*]It should maybe be in LQ Suggestions and Feedback?...
hmmm...

This BBcode looks quite interesting
Quote:
{left bracket}noparse][list=1][*]It should maybe be in LQ Suggestions and Feedback?{left bracket}/noparse]


Eureka!
"noparse" means the same as "\"(backward slash) does in bash or sed!! It escapes the automatic processing of the special characters! This answers Question 1

e.g.
Solution:
Sample list
  1. First
  2. Second
  3. Third
    1. The letter A [*]
    2. The letter B
  4. Fourth
  5. Fifth

Last edited by andrew.comly; 07-26-2017 at 12:10 AM. Reason: append Q1's solution
 
Old 07-26-2017, 12:18 AM   #5
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Question 1st word: [INDENT]...[/INDENT] triggers unwanted newline

Question 3:
How can I make a same line indentation. i.e. when I use Name {left bracket}indent]description[/indent], the description runs down to the next line. How do I make tabs/indents and still remain on the same line?

e.g.
NAME{space}{space}{space}{space}{space}{space}{space}{space}Definition
Apple{space}{space}{space}{space}{space}{space}{space}{space}a fruit containing pectin.

e.g. C langage: printf
prinf("a\sb",var1) **\s space, \t tab, \n newline

e.g. MathJax
To add more space, use \, for a
thin space a b ; \; for a wider space a b. \quad and \qquad are large spaces: a b , a
b .

Last edited by andrew.comly; 07-26-2017 at 12:39 AM. Reason: more examples
 
Old 07-26-2017, 04:16 AM   #6
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Red face BB Code reference found at webpage bottom!

I found the reference for BB Code.

So I guess by the above reference there is no answer to question 2. But what about question 3?
 
Old 07-26-2017, 07:06 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by andrew.comly View Post
I found the reference for BB Code.

So I guess by the above reference there is no answer to question 2. But what about question 3?
The BB Codes weren't designed to account for every single possibility.

I understand your desired intention, however the only ways I know of to do that using the LQ web interface are;
  • Manually type using spaces, running the slight risk that variable sized fonts may alter things in appearance. However the LQ site seems to work OK for me if I do that intentionally
  • Same as above, however put it all within [code] blocks because the use of [code] BB Codes around something, preserves the formatting and this may preserve the spacing a bit better and use a fixed font since that's how code is best shown.
I'll move this thread to the S&F forum because I can see now that it really is about how to use LQ site features. Perhaps Jeremy may add to the answer.
 
1 members found this post helpful.
Old 07-27-2017, 11:31 PM   #8
andrew.comly
Member
 
Registered: Dec 2012
Distribution: Trisquel-Mini 7.0, Lubuntu 14.04, Debian lxde 8.0
Posts: 311

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Talking [SOLVED] Vital questions answered.

Quote:
Originally Posted by rtmistler View Post
The BB Codes weren't designed to account for every single possibility.
I guess sometimes I can be too curious.

Moreover, I finally found the BB Codes link!!

Thus, the essential questions have been answered, THANKS SO MUCH for your patience!

Last edited by andrew.comly; 07-27-2017 at 11:34 PM.
 
1 members found this post helpful.
  


Reply

Tags
markdown, special character



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Python - Sorting Lists inside of Lists LXer Syndicated Linux News 0 06-06-2013 01:00 PM
Spellcheck function broken in Libre Office eoinrua Linux - Software 5 05-03-2013 04:02 PM
How are opt-in e-mail lists distinguished from spam lists? Travis86 Programming 2 01-29-2012 08:55 PM
Is the RTC Wake Alarm Function Broken For the Year 2010? Woodsman Linux - General 2 01-01-2010 07:17 PM
LXer: Unique Sorting Of Lists And Lists Of Lists With Perl For Linux Or Unix LXer Syndicated Linux News 0 09-05-2008 01:50 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration