Skip to content

[ISSUE] A way to insert a CodeSnippet that is split over multiple fragments would be nice #24

@lestephane

Description

@lestephane

Consider the following:

package de.quantummaid.tutorials;

//Showcase start step2AdapterDeclaration1
import de.quantummaid.httpmaid.awslambda.AwsLambdaEndpoint;
import static de.quantummaid.httpmaid.awslambda.AwsLambdaEndpoint.awsLambdaEndpointFor;
//Showcase end step2AdapterDeclaration1
import de.quantummaid.quantummaid.QuantumMaid;

import java.util.Map;

//Showcase start step2AdapterDeclaration2
public final class Main {
  private static final AwsLambdaEndpoint ADAPTER = awsLambdaEndpointFor(quantumMaidConfig().httpMaid());
  //...
  //Showcase end step2AdapterDeclaration2

I have to create two separate snippets, when what I really want is to call them both with the same name.
Then, when it's included in a markdown file, it would take care of creating a single code block with ...
between the fragments:

import de.quantummaid.httpmaid.awslambda.AwsLambdaEndpoint;
import static de.quantummaid.httpmaid.awslambda.AwsLambdaEndpoint.awsLambdaEndpointFor;
...
public final class Main {
  private static final AwsLambdaEndpoint ADAPTER = awsLambdaEndpointFor(quantumMaidConfig().httpMaid());
  //...

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions