add kotlin-playground styles to PLATFORM.md (#2081)

This commit is contained in:
Alexander Prendota
2018-09-18 12:37:41 +03:00
committed by Nikolay Igotti
parent 803620f423
commit 014c12106f
+18 -6
View File
@@ -14,7 +14,13 @@ to platform's implementation of `POSIX` standard.
To use the library just To use the library just
import platform.posix.* <div class="sample" markdown="1" theme="idea" data-highlight-only>
```kotlin
import platform.posix.*
```
</div>
The only target for which it is not available is [WebAssembly](https://en.wikipedia.org/wiki/WebAssembly). The only target for which it is not available is [WebAssembly](https://en.wikipedia.org/wiki/WebAssembly).
@@ -28,15 +34,21 @@ We've gone a little further and provided access to more specific
native OS services. One needs to import the proper packages native OS services. One needs to import the proper packages
on each of the platform. Choose what matches your target platform: on each of the platform. Choose what matches your target platform:
import platform.osx.* <div class="sample" markdown="1" theme="idea" data-highlight-only>
import platform.linux.* ```kotlin
import platform.osx.*
import platform.windows.* import platform.linux.*
import platform.android.* import platform.windows.*
import platform.ios.* import platform.android.*
import platform.ios.*
```
</div>
### Popular native libraries ### Popular native libraries