Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

1

Sonntag, 5. April 2015, 13:03

Syntax Highlighting, Snippets & Autocompletions

Well, after several thousand lines of code written i found this pretty important and did one for SublimeText 3. *smile*

See on github

For now it's optimised to fit my workflow.
So if you find it useful any feedback, suggestions for further development, criticism, or even pull requests would be appreciated. *smile*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »a.pu« (11. Mai 2019, 08:36)


jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

2

Dienstag, 7. April 2015, 11:20

That's great !! thanks so much for sharing this !!
everpano.com step beyond 360

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »jordi« (7. April 2015, 11:31)


3

Montag, 13. April 2015, 15:18

Great! *thumbsup*
Thanks!

Time to test Sublime ;-).
I didn't know that texteditor, but what I see looks good so far.

Best regards,
Klaus

4

Montag, 13. April 2015, 15:53

YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

5

Montag, 13. April 2015, 23:50

Great! *thumbsup*


Time to test Sublime ;-).

This editor is one of the most popular for last years *smile*


YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

That's quite a question, i'll see what i can do.

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »a.pu« (14. April 2015, 08:16)


6

Dienstag, 14. April 2015, 16:30

Useful! thanks! *thumbup* *thumbup* *thumbup* *thumbup*

benji33

Fortgeschrittener

Beiträge: 244

Wohnort: France

Beruf: Senior Software engineer

  • Nachricht senden

7

Mittwoch, 15. April 2015, 15:00

*thumbsup* ... very good and lite editor.

8

Mittwoch, 15. April 2015, 22:32

Great! *thumbsup*


Time to test Sublime ;-).

This editor is one of the most popular for last years *smile*


YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

That's quite a question, i'll see what i can do.
I already started with a brackets.io Code Hinting (autocompletion) functionality for the static XML structure :) .

I just started today, so it will take a while. But brackets.io is also really populair for HTML, CSS and Javascript development.

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

9

Donnerstag, 16. April 2015, 07:32

Ibrendie it's easier to reply here.

To see highlighting in work,
- Open any XML,
- Go to View -> Syntax -> Krpano Markup Language, or click on language name in bottom right corner of editor window,
- Go to Preferences -> Color Scheme -> User -> May Thunderstorm.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »a.pu« (17. April 2015, 08:31)


a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

10

Montag, 27. April 2015, 11:15

I have updated color scheme for better html and css editing experience, now it's based on Monokai dark.

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

11

Samstag, 4. Juli 2015, 09:18

Made some bugfixes. *smile*

12

Montag, 27. Juli 2015, 16:16

Amazing !!!

I use SublimeText for years for all python, php etc and it is wonderful.

Anyway, your language works great with your theme, less with monokai which is the one I always use. You theme doesn't work great with other language, and switching themes each time is a pain.

Also, there is a problem with your language definition when there is ' character inside commands, like set(layer[panoTitle].html,L'autre );"

also, this works:

Quellcode

1
2
onclick="
        	loadscene(Pano6, null, MERGE, NOBLEND);"


But not this (all is blue):

Quellcode

1
onclick="loadscene(Pano6, null, MERGE, NOBLEND);"


Or this works:

Quellcode

1
2
3
4
5
6
7
<krpano>
	<scene name="myScene
	"
    	onstart="set(layer[mylayer].visible,true);"
    	/>
	</scene>
</krpano>


But not this:

Quellcode

1
2
3
4
5
6
<krpano>
	<scene name="myScene"
    	onstart="set(layer[mylayer].visible,true);"
    	/>
	</scene>
</krpano>

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

13

Freitag, 31. Juli 2015, 15:57

Amazing !!!

I use SublimeText for years for all python, php etc and it is wonderful.

Anyway, your language works great with your theme, less with monokai which is the one I always use. You theme doesn't work great with other language, and switching themes each time is a pain.



I know Monokai to be most popular theme for code editing ever but when i tried to use it i had not enough colors for all entities. That's why i used Soda and nether thought Monokai was of that much importance. The only way is to make another color scheme, i'll try.

Also, there is a problem with your language definition when there is ' character inside commands, like set(layer[panoTitle].html,L'autre );"

also, this works:

Quellcode

1
2
onclick="
        	loadscene(Pano6, null, MERGE, NOBLEND);"


But not this (all is blue):

Quellcode

1
onclick="loadscene(Pano6, null, MERGE, NOBLEND);"




This is made on purpose, cause i've not found any way to define through regexp's whether a double-quoted string was just text or some code. In first case it should be blue, in second it should be parsed. So i persumed if double-quoted string starts with "\n" it should be a piece of code. Besides it provides a better looking code:

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »a.pu« (1. August 2015, 08:21)


herrpedro

Fortgeschrittener

Beiträge: 210

Wohnort: Lisbon

Beruf: Programmer/analyst

  • Nachricht senden

14

Freitag, 31. Juli 2015, 21:52

Thank you!
time to use sublime!

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

15

Donnerstag, 18. Februar 2016, 13:03

Github link is down, can I find the files somewhere else ?
Thx

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

16

Dienstag, 22. März 2016, 13:11

I published this repository back

https://github.com/apushkarev/Krpano-Markup-Language

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

17

Montag, 18. April 2016, 12:59

I have updated syn def with a bunch of new words which were added to language since 1.19pr1.

Now definition is completely up to date.

Monokai theme support is next to add...

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

18

Freitag, 23. September 2016, 19:44

More updates!

Added new instruction words, functions, constants and webVR plugin entirely.
All is up to 19.7, enjoy! *love*


Also for geeky coders i've developed dark stylesheet for krpano documentation on main site.
If you use code editor with dark theme, that makes it way more comfortable to work with docs.

Check this topic: Dark theme for krpano site

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

19

Dienstag, 20. Juni 2017, 10:39

Updates!

- new words through past 9 months releases,
- SPACE INTENDATION support! *love*


Reagrding previoyus notes, I think writing like this:
set(layer[panoTitle].html,L'autre );

Is quite not good idea, I'd recommend use

Quellcode

1
&#39;
instead

a.pu

Schüler

  • »a.pu« ist der Autor dieses Themas

Beiträge: 120

Beruf: software engineer, author of krpano syntax highlighting, bundler and style guide

  • Nachricht senden

20

Donnerstag, 3. August 2017, 22:44

Massive updates!

- Monokai support!
- comment keyboard shortcut.

Thanks to Jordi for feedback and advice *smile*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »a.pu« (3. August 2017, 22:56)


Ähnliche Themen