<commit_before># zk-codemirror
Integration of Codemirror library for ZK 7 framework

This project provides an integration of the original CodeMirror-Library (developed by <NAME> on [http://codemirror.net](http://codemirror.net)) for the [ZK7-framework](http://zkoss.org).</br>
What is CodeMirror? "CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar. If a parser has been written for the language you are editing (see below for a list of supported languages), the code will be coloured, and the editor will help you with indentation." (Quote from http://codemirror.net)

##Usage

```xml
<?page title="ZK Code mirror example"?>
<window title="ZK Code mirror example" border="normal" mode="overlapped" sizable="true">
	<hlayout vflex="1">
		<codemirror id="s" hflex="1" vflex="1" mode="javascript" 
			value="function abc() {}"></codemirror>
	</hlayout>
	<hlayout>
		<div hflex="1"></div>
		<button label="ok" onClick="alert(s.getText())" />
		<button label="mode" onClick='s.setMode("text/x-java");'/>
	</hlayout>
</window>
```

## Maven

Add the following block to the dependencies

```xml
<dependency>
	<groupId>org.sinnlabs</groupId>
	<artifactId>zk-codemirror</artifactId>
	<version>0.1</version>
</dependency>
```

## Supported modes

*  HTML mode = "text/html";
*  JAVA mode = "x-java";
*  JAVASCRIPT mode = "text/javascript";
*  C mode = "text/x-csrc";
*  CPP mode = "text/x-c++src";
*  OBJECTIVE_C mode = "text/x-objectivec";
*  SCALA mode = "text/x-scala";
*  KOTLIN mode = "text/x-kotlin";
*  CEYLON mode = "text/x-ceylon";
*  CSHARP mode = "text/x-csharp";
*  JSON mode = "application/json";<commit_msg>Maven sync finished. Update readme with new version<commit_after># zk-codemirror
Integration of Codemirror library for ZK 7 framework

This project provides an integration of the original CodeMirror-Library (developed by <NAME> on [http://codemirror.net](http://codemirror.net)) for the [ZK7-framework](http://zkoss.org).</br>
What is CodeMirror? "CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar. If a parser has been written for the language you are editing (see below for a list of supported languages), the code will be coloured, and the editor will help you with indentation." (Quote from http://codemirror.net)

##Usage

```xml
<?page title="ZK Code mirror example"?>
<window title="ZK Code mirror example" border="normal" mode="overlapped" sizable="true">
	<hlayout vflex="1">
		<codemirror id="s" hflex="1" vflex="1" mode="javascript" 
			value="function abc() {}"></codemirror>
	</hlayout>
	<hlayout>
		<div hflex="1"></div>
		<button label="ok" onClick="alert(s.getText())" />
		<button label="mode" onClick='s.setMode("text/x-java");'/>
	</hlayout>
</window>
```

## Maven

Add the following block to the dependencies

```xml
<dependency>
	<groupId>org.sinnlabs</groupId>
	<artifactId>zk-codemirror</artifactId>
	<version>0.2</version>
</dependency>
```

## Supported modes

*  HTML mode = "text/html";
*  JAVA mode = "x-java";
*  JAVASCRIPT mode = "text/javascript";
*  C mode = "text/x-csrc";
*  CPP mode = "text/x-c++src";
*  OBJECTIVE_C mode = "text/x-objectivec";
*  SCALA mode = "text/x-scala";
*  KOTLIN mode = "text/x-kotlin";
*  CEYLON mode = "text/x-ceylon";
*  CSHARP mode = "text/x-csharp";
*  JSON mode = "application/json";
{'fraction_non_alphanumeric': 0.15465980560320183, 'fraction_numerical': 0.004574042309891366, 'mean_word_length': 4.764415156507414, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '35661', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1174, 'n_words': 360}