# code-block-pro/1.3.0/build/shiki/samples/cadence.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.3.0. 19 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.3.0/code/build/shiki/samples/cadence.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.3.0/raw/build/shiki/samples/cadence.sample
- Modified: 2022-08-22T22:25:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.3.0/code/build/shiki/samples/cadence.sample#L10-L20`.

```
pub contract HelloWorld {

    // Declare a public field of type String.
    //
    // All fields must be initialized in the init() function.
    pub let greeting: String

    // The init() function is required if the contract contains any fields.
    init() {
        self.greeting = "Hello, World!"
    }

    // Public function that returns our friendly greeting!
    pub fun hello(): String {
        return self.greeting
    }
}

// From https://docs.onflow.org/cadence/tutorial/02-hello-world/
```
