template_support: fix hardcoded link to UP (inspired by #157)

This commit is contained in:
Yann Cébron 2019-03-25 13:19:49 +01:00
parent 12430d2b28
commit dd9e099161

View File

@ -48,7 +48,7 @@ A [`TemplateContextType`](upsource:///platform/lang-api/src/com/intellij/codeIns
{% include /code_samples/live_templates/src/MarkdownContext.java %}
```
Once you define the `TemplateContextType`*, be sure to add the assigned context type to the previously created Live Template settings file. Under `<template>...</template>` add the following context:
Once you define the `TemplateContextType`, be sure to add the assigned context type to the previously created Live Template settings file. Under `<template>...</template>` add the following context:
```xml
<context>
@ -56,7 +56,7 @@ Once you define the `TemplateContextType`*, be sure to add the assigned context
</context>
```
*It is not always necessary to define your own `TemplateContextType`, as there are many existing template contexts already defined in the IntelliJ Platform. Consider reusing one of the [many existing template contexts](https://upsource.jetbrains.com/idea-community/file/d190fa2f2741067587fd14c6f771302dda6fcc18/platform/lang-api/src/com/intellij/codeInsight/template/TemplateContextType.java?hierarchy=/platform/lang-api/src/com/intellij/codeInsight/template/TemplateContextType.java:46&nav=0:0:focused) if you are augmenting language support to an existing area.
It is not always necessary to define your own `TemplateContextType`, as there are many existing template contexts already defined in the IntelliJ Platform. Consider reusing one of the [many existing template contexts](upsource:///platform/lang-api/src/com/intellij/codeInsight/template/TemplateContextType.java) if you are augmenting language support to an existing area.
## Register Extension Points