Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code blocks #1324

Open
fred-atherden opened this issue Jun 12, 2019 · 0 comments
Open

Code blocks #1324

fred-atherden opened this issue Jun 12, 2019 · 0 comments
Assignees
Labels
feature-request A formal Texture feature specification

Comments

@fred-atherden
Copy link
Collaborator

Description

A block of text designated as code, to be displayed with the original spacing/line-breaks retained.

User Stories

Author

  1. As an author, I want to be able to add a code-block to my article so that I can include pseudo-code or code-snippets to illustrate my text.
  2. As an author, I want to be able to distinguish my code-blocks from the normal text so that I can tell how they will display in the published article.
  3. As an author, I want to be able to edit the contents of a code-block so that I can correct errors.

Production staff

But what if . . . ?

Considerations

  • Code blocks are intended to capture code extracts for illustration purposes. Given that formatting is important for the comprehension of code, these blocks need to capture specific spacing and indentation.
  • Within a code-block, a new line should not create a new code-block or paragraph but simply a line-break to be preserved within the block. Spacing should also be captured so that code can be displayed as it is meant to be read.
  • We would expect the content captured in code blocks to display with monospace formatting in texture.

XML requirements

The preformat element is used. All content within it will be treated as text.

<preformat>for i in `ls | grep. fastq`; do 
echo ${i} 
module load java
 java -jar ~/tools/Trimmomatic-0.36/trimmomatic-0.36.jar SE -phred33 ${i}
 ${j}.trimmed.fq.gz ILLUMINACLIP:~/tools/Trimmomatic-0.36/adapters/TruSeq3-SE.fa:2:30:10 
HEADCROP:12 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
done</preformat>

Mock ups

This is not required, but if you have mock ups of what you would like to see please provide them here.

Proposal

This will be added by the Texture team after the feature request is discussed and agreed.

@fred-atherden fred-atherden added the feature-request A formal Texture feature specification label Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A formal Texture feature specification
Projects
Development

No branches or pull requests

4 participants