Code
Type name: Code
Extends CreativeWork
Name |
Type |
Description |
codeRepository |
URL |
Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex). |
programmingLanguage |
Thing |
The computer programming language. |
runtime |
Text |
Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). |
sampleType |
Text |
Full (compile ready) solution, code snippet, inline code, scripts, template. |
targetProduct |
SoftwareApplication |
Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["`Code` markup is used to represent code snippets or complete software solutions and extends the `CreativeWork` type."],["It includes properties to specify the code repository, programming language, runtime dependencies, sample type, and the target product."],["Developers can use `Code` markup to provide information like code location, language, dependencies and the intended operating system/product."]]],["The `Code` type, extending `CreativeWork`, defines properties for describing code. Key properties include `codeRepository`, a URL linking to the code repository; `programmingLanguage`, specifying the language used; `runtime`, detailing dependencies; `sampleType`, indicating the code's format; and `targetProduct`, identifying the applicable software or OS. This structure allows for detailed categorization and description of code-related content.\n"]]